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

/darwin-on-arm/xnu/bsd/sys/
H A Dnamei.h176 #define USEDVP 0x00400000 /* start the lookup at ndp.ni_dvp */
196 #define NDINIT(ndp, op, pop, flags, segflg, namep, ctx) { \
197 (ndp)->ni_cnd.cn_nameiop = op; \
198 (ndp)->ni_op = pop; \
199 (ndp)->ni_cnd.cn_flags = flags; \
201 (ndp)->ni_segflg = ((IS_64BIT_PROCESS(vfs_context_proc(ctx))) ? UIO_USERSPACE64 : UIO_USERSPACE32); \
204 (ndp)->ni_segflg = segflg; \
206 (ndp)->ni_dirp = namep; \
207 (ndp)->ni_cnd.cn_context = ctx; \
208 (ndp)
[all...]
H A Dvnode_internal.h399 int vn_open(struct nameidata *ndp, int fmode, int cmode);
400 int vn_open_modflags(struct nameidata *ndp, int *fmode, int cmode);
401 int vn_open_auth(struct nameidata *ndp, int *fmode, struct vnode_attr *);
403 errno_t vn_remove(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, int32_t flags, struct vnode_attr *vap, vfs_context_t ctx);
439 int vn_mkdir(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, struct vnode_attr *vap, vfs_context_t ctx);
440 int vn_rmdir(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, struct vnode_attr *vap, vfs_context_t ctx);
H A Dvnode_if.h322 extern int VNOP_COMPOUND_OPEN(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, int32_t flags, int32_t fmode, uint32_t *status, struct vnode_attr *vap, vfs_context_t ctx);
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_lookup.c114 boolean_t lookup_continue_ok(struct nameidata *ndp);
115 int lookup_traverse_mountpoints(struct nameidata *ndp, struct componentname *cnp, vnode_t dp, int vbusyflags, vfs_context_t ctx);
116 int lookup_handle_symlink(struct nameidata *ndp, vnode_t *new_dp, vfs_context_t ctx);
119 int lookup_handle_rsrc_fork(vnode_t dp, struct nameidata *ndp, struct componentname *cnp, int wantparent, vfs_context_t ctx);
120 int lookup_handle_found_vnode(struct nameidata *ndp, struct componentname *cnp, int rdonly,
123 int lookup_handle_emptyname(struct nameidata *ndp, struct componentname *cnp, int wantparent);
161 namei(struct nameidata *ndp) argument
165 struct vnode *usedvp = ndp->ni_dvp; /* store pointer to vp in case we must loop due to
167 u_long cnpflags = ndp->ni_cnd.cn_flags; /* store in case we have to restore after loop */
169 struct componentname *cnp = &ndp
401 namei_compound_available(vnode_t dp, struct nameidata *ndp) argument
474 lookup_handle_rsrc_fork(vnode_t dp, struct nameidata *ndp, struct componentname *cnp, int wantparent, vfs_context_t ctx) argument
568 lookup_handle_found_vnode(struct nameidata *ndp, struct componentname *cnp, int rdonly, int vbusyflags, int *keep_going, int nc_generation, int wantparent, int atroot, vfs_context_t ctx) argument
753 lookup_handle_emptyname(struct nameidata *ndp, struct componentname *cnp, int wantparent) argument
858 lookup(struct nameidata *ndp) argument
1146 lookup_validate_creation_path(struct nameidata *ndp) argument
1168 lookup_traverse_mountpoints(struct nameidata *ndp, struct componentname *cnp, vnode_t dp, int vbusyflags, vfs_context_t ctx) argument
1283 lookup_handle_symlink(struct nameidata *ndp, vnode_t *new_dp, vfs_context_t ctx) argument
1507 namei_unlock_fsnode(struct nameidata *ndp) argument
1523 nameidone(struct nameidata *ndp) argument
1724 lookup_compound_vnop_post_hook(int error, vnode_t dvp, vnode_t vp, struct nameidata *ndp, int did_create) argument
[all...]
H A Dvfs_vnops.c155 vn_open(struct nameidata *ndp, int fmode, int cmode) argument
157 return(vn_open_modflags(ndp, &fmode, cmode));
161 vn_open_modflags(struct nameidata *ndp, int *fmodep, int cmode) argument
168 return(vn_open_auth(ndp, fmodep, &va));
201 vn_open_auth_do_create(struct nameidata *ndp, struct vnode_attr *vap, int fmode, boolean_t *did_create, boolean_t *did_open, vfs_context_t ctx) argument
204 vnode_t dvp = ndp->ni_dvp;
209 batched = vnode_compound_open_available(ndp->ni_dvp);
217 if (ndp->ni_cnd.cn_flags & CN_WANTSRSRCFORK) {
218 if ((error = vn_authorize_create(dvp, &ndp->ni_cnd, vap, ctx, NULL)) != 0)
220 if ((error = vnode_makenamedstream(dvp, &ndp
352 vn_open_auth(struct nameidata *ndp, int *fmodep, struct vnode_attr *vap) argument
[all...]
H A Dvfs_cache.c975 cache_lookup_path(struct nameidata *ndp, struct componentname *cnp, vnode_t dp, argument
995 ndp->ni_flag &= ~(NAMEI_TRAILINGSLASH);
1027 ndp->ni_pathlen -= cnp->cn_namelen;
1028 ndp->ni_next = cp;
1039 ndp->ni_pathlen--;
1042 ndp->ni_flag |= NAMEI_TRAILINGSLASH;
1043 *ndp->ni_next = '\0';
1046 ndp->ni_next = cp;
1063 if ((ndp->ni_pathlen == sizeof(_PATH_RSRCFORKSPEC)) &&
1074 ndp
[all...]
H A Dkpi_vfs.c1808 struct nameidata *ndp = cnp->cn_ndp; local
1810 if (ndp == NULL) {
1829 /* From lookup(): || *ndp->ni_next == '/') No need for this, we know we're NULL-terminated here */
1833 if (ndp->ni_flag & NAMEI_TRAILINGSLASH) {
1841 ndp->ni_flag |= NAMEI_CONTLOOKUP;
3082 VNOP_COMPOUND_OPEN(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, int32_t flags, int32_t fmode, uint32_t *statusp, struct vnode_attr *vap, vfs_context_t ctx) argument
3089 struct componentname *cnp = &ndp->ni_cnd;
3136 lookup_compound_vnop_post_hook(_err, dvp, *vpp, ndp, did_create);
4246 VNOP_COMPOUND_REMOVE(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, int32_t flags, struct vnode_attr *vap, vfs_context_t ctx) argument
4255 a.a_cnp = &ndp
4849 vn_mkdir(struct vnode *dvp, struct vnode **vpp, struct nameidata *ndp, struct vnode_attr *vap, vfs_context_t ctx) argument
4926 VNOP_COMPOUND_MKDIR(struct vnode *dvp, struct vnode **vpp, struct nameidata *ndp, struct vnode_attr *vap, vfs_context_t ctx) argument
4964 vn_rmdir(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, struct vnode_attr *vap, vfs_context_t ctx) argument
5047 VNOP_COMPOUND_RMDIR(struct vnode *dvp, struct vnode **vpp, struct nameidata *ndp, struct vnode_attr *vap, vfs_context_t ctx) argument
5906 vn_remove(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, int32_t flags, struct vnode_attr *vap, vfs_context_t ctx) argument
[all...]
H A Dvfs_syscalls.c144 static int change_dir(struct nameidata *ndp, vfs_context_t ctx);
2914 change_dir(struct nameidata *ndp, vfs_context_t ctx) argument
2919 if ((error = namei(ndp)))
2921 nameidone(ndp);
2922 vp = ndp->ni_vp;
2964 open1(vfs_context_t ctx, struct nameidata *ndp, int uflags, struct vnode_attr *vap, int32_t *retval) argument
3014 if ((error = vn_open_auth(ndp, &flags, vap))) {
3043 vp = ndp->ni_vp;
3947 unlink1(vfs_context_t ctx, struct nameidata *ndp, int unlink_flags) argument
3967 ndp
4672 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...]
H A Dvfs_subr.c216 static int vn_create_reg(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp,
5094 vn_create_reg(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, struct vnode_attr *vap, uint32_t flags, int fmode, uint32_t *statusp, vfs_context_t ctx) argument
5099 return VNOP_COMPOUND_OPEN(dvp, vpp, ndp, VNOP_COMPOUND_OPEN_DO_CREATE, fmode, statusp, vap, ctx);
5101 return VNOP_CREATE(dvp, vpp, &ndp->ni_cnd, vap, ctx);
5147 vn_create(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, struct vnode_attr *vap, uint32_t flags, int fmode, uint32_t *statusp, vfs_context_t ctx) argument
5155 cnp = &ndp->ni_cnd;
5157 batched = namei_compound_available(dvp, ndp) ? TRUE : FALSE;
5185 error = vn_create_reg(dvp, vpp, ndp, vap, flags, fmode, statusp, ctx);
5188 error = vn_mkdir(dvp, vpp, ndp, vap, ctx);
5393 panic("NULL ndp");
8390 vnode_trigger_resolve(vnode_t vp, struct nameidata *ndp, vfs_context_t ctx) argument
[all...]
/darwin-on-arm/xnu/bsd/vm/
H A Ddp_backing_file.c226 struct nameidata nd, *ndp; local
243 ndp = &nd;
251 NDINIT(ndp, LOOKUP, OP_LOOKUP, FOLLOW | LOCKLEAF | AUDITVNPATH1,
255 if ((error = namei(ndp)))
257 nameidone(ndp);
258 vp = ndp->ni_vp;
420 struct nameidata nd, *ndp; local
433 ndp = &nd;
441 NDINIT(ndp, LOOKUP, OP_LOOKUP, FOLLOW | LOCKLEAF | AUDITVNPATH1,
445 if ((error = namei(ndp)))
[all...]
/darwin-on-arm/xnu/bsd/hfs/
H A Dhfs_btreeio.c619 BTNodeDescriptor *ndp; local
769 ndp = (BTNodeDescriptor *)buffer;
771 ndp->fLink = 1;
772 ndp->kind = kBTHeaderNode;
773 ndp->numRecords = 3;
838 ndp = (BTNodeDescriptor *)buffer;
840 ndp->fLink = node_num + 1;
841 ndp->kind = kBTMapNode;
842 ndp->numRecords = 1;
H A Dhfs_hotfiles.c1852 BTNodeDescriptor *ndp; local
1879 ndp = (BTNodeDescriptor *)buffer;
1880 ndp->kind = kBTHeaderNode;
1881 ndp->numRecords = SWAP_BE16 (3);
/darwin-on-arm/xnu/bsd/kern/
H A Dmach_loader.c1699 struct nameidata *ndp = &data->__nid; local
1718 NDINIT(ndp, LOOKUP, OP_OPEN, FOLLOW | LOCKLEAF, UIO_SYSSPACE, CAST_USER_ADDR_T(path), ctx);
1720 if ((error = namei(ndp)) != 0) {
1728 nameidone(ndp);
1729 vp = ndp->ni_vp;
/darwin-on-arm/xnu/bsd/nfs/
H A Dnfs_serv.c1368 struct nfsrv_descript **ndp,
1395 if (*ndp) {
1396 nd = *ndp;
1397 *ndp = NULL;
1647 *ndp = nd;
1367 nfsrv_writegather( struct nfsrv_descript **ndp, struct nfsrv_sock *slp, vfs_context_t ctx, mbuf_t *mrepp) argument
H A Dnfs_socket.c5856 struct nfsrv_descript **ndp)
5863 *ndp = NULL;
5899 *ndp = nd;
5853 nfsrv_dorec( struct nfsrv_sock *slp, struct nfsd *nfsd, struct nfsrv_descript **ndp) argument

Completed in 163 milliseconds