Searched refs:ndp (Results 1 - 14 of 14) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/
H A Dvfs_lookup.c150 namei(struct nameidata *ndp) argument
155 struct vnode *usedvp = ndp->ni_dvp; /* store pointer to vp in case we must loop due to
157 u_long cnpflags = ndp->ni_cnd.cn_flags; /* store in case we have to restore after loop */
160 struct componentname *cnp = &ndp->ni_cnd;
185 cnp->cn_pnbuf = ndp->ni_pathbuf;
189 if (IS_VALID_UIO_SEGFLG(ndp->ni_segflg) == 0) {
195 if (UIO_SEG_IS_USER_SPACE(ndp->ni_segflg)) {
196 error = copyinstr(ndp->ni_dirp, cnp->cn_pnbuf,
197 cnp->cn_pnlen, (size_t *)&ndp->ni_pathlen);
199 error = copystr(CAST_DOWN(void *, ndp
493 lookup(struct nameidata *ndp) argument
1187 nameidone(struct nameidata *ndp) argument
[all...]
H A Dvfs_vnops.c140 vn_open(struct nameidata *ndp, int fmode, int cmode) argument
142 return(vn_open_modflags(ndp, &fmode, cmode));
146 vn_open_modflags(struct nameidata *ndp, int *fmodep, int cmode) argument
153 return(vn_open_auth(ndp, fmodep, &va));
158 * pointed to by ndp, fmodep, and vap as necessary to perform the requested
162 * Parameters: ndp The nami data pointer describing the
178 * The contents of '*ndp' will be modified, based on the other
202 vn_open_auth(struct nameidata *ndp, int *fmodep, struct vnode_attr *vap) argument
206 vfs_context_t ctx = ndp->ni_cnd.cn_context;
220 ndp
[all...]
H A Dvfs_cache.c832 cache_lookup_path(struct nameidata *ndp, struct componentname *cnp, vnode_t dp, argument
880 ndp->ni_pathlen -= cnp->cn_namelen;
881 ndp->ni_next = cp;
892 ndp->ni_pathlen--;
896 *ndp->ni_next = '\0';
899 ndp->ni_next = cp;
916 if ((ndp->ni_pathlen == sizeof(_PATH_RSRCFORKSPEC)) &&
927 ndp->ni_next[0] = '\0';
928 ndp->ni_pathlen = 1;
988 dp == ndp
[all...]
H A Dvfs_syscalls.c140 static int change_dir(struct nameidata *ndp, vfs_context_t ctx);
2039 change_dir(struct nameidata *ndp, vfs_context_t ctx) argument
2044 if ((error = namei(ndp)))
2046 nameidone(ndp);
2047 vp = ndp->ni_vp;
2088 open1(vfs_context_t ctx, struct nameidata *ndp, int uflags, struct vnode_attr *vap, register_t *retval) argument
2138 if ((error = vn_open_auth(ndp, &flags, vap))) {
2167 vp = ndp->ni_vp;
2929 unlink1(vfs_context_t ctx, struct nameidata *ndp, int nodelbusy) argument
2943 ndp
3590 stat2(vfs_context_t ctx, struct nameidata *ndp, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size, int isstat64) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Dnamei.h156 #define USEDVP 0x00400000 /* start the lookup at ndp.ni_dvp */
170 #define NDINIT(ndp, op, flags, segflg, namep, ctx) { \
171 (ndp)->ni_cnd.cn_nameiop = op; \
172 (ndp)->ni_cnd.cn_flags = flags; \
174 (ndp)->ni_segflg = ((IS_64BIT_PROCESS(vfs_context_proc(ctx))) ? UIO_USERSPACE64 : UIO_USERSPACE32); \
177 (ndp)->ni_segflg = UIO_SYSSPACE32; \
180 (ndp)->ni_segflg = segflg; \
182 (ndp)->ni_dirp = namep; \
183 (ndp)->ni_cnd.cn_context = ctx; \
212 int namei(struct nameidata *ndp);
[all...]
H A Dvnode_internal.h362 int vn_open(struct nameidata *ndp, int fmode, int cmode);
363 int vn_open_modflags(struct nameidata *ndp, int *fmode, int cmode);
364 int vn_open_auth(struct nameidata *ndp, int *fmode, struct vnode_attr *);
/macosx-10.5.8/xnu-1228.15.4/bsd/vm/
H A Ddp_backing_file.c168 struct nameidata nd, *ndp; local
183 ndp = &nd;
196 NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF | AUDITVNPATH1,
200 if ((error = namei(ndp)))
202 nameidone(ndp);
203 vp = ndp->ni_vp;
319 struct nameidata nd, *ndp; local
330 ndp = &nd;
338 NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF | AUDITVNPATH1,
342 if ((error = namei(ndp)))
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/nullfs/
H A Dnull_vfsops.c132 NDINIT(ndp, LOOKUP, FOLLOW|WANTPARENT|LOCKLEAF,
134 if (error = namei(ndp))
136 nameidone(ndp);
140 lowerrootvp = ndp->ni_vp;
142 vnode_put(ndp->ni_dvp);
143 ndp->ni_dvp = NULL;
/macosx-10.5.8/xnu-1228.15.4/bsd/hfs/
H A Dhfs_btreeio.c586 BTNodeDescriptor *ndp; local
703 ndp = (BTNodeDescriptor *)buffer;
704 ndp->kind = kBTHeaderNode;
705 ndp->numRecords = 3;
H A Dhfs_hotfiles.c1810 BTNodeDescriptor *ndp; local
1837 ndp = (BTNodeDescriptor *)buffer;
1838 ndp->kind = kBTHeaderNode;
1839 ndp->numRecords = SWAP_BE16 (3);
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dmach_loader.c1552 struct nameidata nid, *ndp; local
1575 ndp = &nid;
1578 NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF, UIO_SYSSPACE32, CAST_USER_ADDR_T(path), ctx);
1580 if ((error = namei(ndp)) != 0) {
1588 nameidone(ndp);
1589 vp = ndp->ni_vp;
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dip_fw2_compat.c296 int i, nsp, ndp; local
311 ndp = IP_FW_GETNDSTP_COMPAT(vers1_rule);
312 for (i = 0; i < ndp; i++) {
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/
H A Dnfs_serv.c1342 struct nfsrv_descript **ndp,
1369 if (*ndp) {
1370 nd = *ndp;
1371 *ndp = NULL;
1621 *ndp = nd;
1341 nfsrv_writegather( struct nfsrv_descript **ndp, struct nfsrv_sock *slp, vfs_context_t ctx, mbuf_t *mrepp) argument
H A Dnfs_socket.c2978 struct nfsrv_descript **ndp)
2985 *ndp = NULL;
3019 *ndp = nd;
2975 nfsrv_dorec( struct nfsrv_sock *slp, struct nfsd *nfsd, struct nfsrv_descript **ndp) argument

Completed in 87 milliseconds