Home
last modified time | relevance | path

Searched refs:ni_vp (Results 1 – 22 of 22) sorted by relevance

/xnu-12377.81.4/bsd/vfs/
H A Dvfs_lookup.c252 … going on a continued lookup, but for vp type %d (tag %d)", ndp->ni_vp->v_type, ndp->ni_vp->v_tag); in namei()
586 ndp->ni_vp = NULLVP; in namei()
614 if ((ndp->ni_flag & NAMEI_UNIQUE) && ndp->ni_vp && vnode_hasmultipath(ndp->ni_vp)) { in namei()
674 if (ndp->ni_vp) { in namei()
675 vnode_put(ndp->ni_vp); in namei()
709 ndp->ni_vp = NULLVP; in namei()
948 ndp->ni_vp = svp; /* on create this may be null */ in lookup_handle_rsrc_fork()
999 dp = ndp->ni_vp; in lookup_handle_found_vnode()
1002 if (ndp->ni_vp == NULLVP) { in lookup_handle_found_vnode()
1029 dp = ndp->ni_vp; in lookup_handle_found_vnode()
[all …]
H A Dvfs_syscalls.c327 vp = nd.ni_vp; in kernel_mount()
612 vnode_t vp = nd.ni_vp; in graft_secureboot_read_metadata()
804 vnode_t macf_vp = graft_on_parent ? parent_vp : nd.ni_vp; in graftdmg()
816 cryptex_vp, graft_on_parent ? NULLVP : nd.ni_vp); in graftdmg()
836 if (nd.ni_vp != NULLVP) { in graftdmg()
837 vnode_put(nd.ni_vp); in graftdmg()
878 if (!vnode_isdir(nd.ni_vp)) { in ungraftdmg()
884 error = mac_graft_check_ungraft(ctx, nd.ni_vp); in ungraftdmg()
891 error = VNOP_IOCTL(nd.ni_vp, FSIOC_UNGRAFT_FS, (caddr_t)&ugfs, 0, ctx); in ungraftdmg()
895 mac_graft_notify_ungraft(ctx, nd.ni_vp); in ungraftdmg()
[all …]
H A Dvfs_vnops.c234 if ((error = vnode_makenamedstream(dvp, &ndp->ni_vp, XATTR_RESOURCEFORK_NAME, 0, ctx)) != 0) { in vn_open_auth_do_create()
246 error = vn_create(dvp, &ndp->ni_vp, ndp, vap, VN_CREATE_DOOPEN, fmode, &status, ctx); in vn_open_auth_do_create()
282 vp = ndp->ni_vp; in vn_open_auth_do_create()
466 vp = ndp->ni_vp; in vn_open_auth()
486 vp = ndp->ni_vp; in vn_open_auth()
527 error = VNOP_COMPOUND_OPEN(dvp, &ndp->ni_vp, ndp, 0, fmode, NULL, NULL, ctx); in vn_open_auth()
530 vp = ndp->ni_vp; in vn_open_auth()
591 vp = ndp->ni_vp; in vn_open_auth()
597 error = VNOP_COMPOUND_OPEN(dvp, &ndp->ni_vp, ndp, 0, fmode, NULL, NULL, ctx); in vn_open_auth()
598 vp = ndp->ni_vp; in vn_open_auth()
[all …]
H A Dvfs_exclave_fs.c583 error = vfs_exclave_fs_register(fs_tag, nd.ni_vp); in vfs_exclave_fs_register_path()
585 vnode_put(nd.ni_vp); in vfs_exclave_fs_register_path()
744 vp = nd.ni_vp; in create_exclave_dir()
764 nd.ni_vp = vp; in create_exclave_dir()
1096 vp = ndp->ni_vp; in exclave_fs_open_internal()
H A Dvfs_xattr.c2172 if ((xvp = nd->ni_vp) == NULLVP) { in open_xattrfile()
2207 error = vn_create(dvp, &nd->ni_vp, nd, va, in open_xattrfile()
2214 xvp = nd->ni_vp; in open_xattrfile()
2234 xvp = nd->ni_vp; in open_xattrfile()
2433 rvp = nd.ni_vp; in remove_xattrfile()
H A Dkpi_vfs.c4558 if (fromnd->ni_vp) { in vn_rename()
4560 src_attr_vp = fromnd->ni_vp; in vn_rename()
4562 if (fromnd->ni_vp->v_type != VREG) { in vn_rename()
4564 vnode_put(fromnd->ni_vp); in vn_rename()
4666 if (tond->ni_vp) { in vn_rename()
4667 dst_attr_vp = tond->ni_vp; in vn_rename()
5243 xvp = nd.ni_vp; in xattrfile_remove()
5354 xvp = nd.ni_vp; in xattrfile_setattr()
H A Dvfs_attrlist.c3565 vp = nd.ni_vp; in getattrlistat_internal()
4072 vp = nd.ni_vp; in readdirattr()
4895 vp = nd.ni_vp; in setattrlist()
4943 vp = nd.ni_vp; in setattrlistat()
H A Dvfs_cache.c2374 ndp->ni_vp = vp; in cache_lookup_path()
H A Dvfs_subr.c7775 *vpp = ndp->ni_vp; in vnode_lookupat()
7832 *vpp = ndp->ni_vp; in vnode_open()
12599 vp = ndp->ni_vp; in vfs_addtrigger()
/xnu-12377.81.4/bsd/kern/
H A Dkern_acct.c176 error = mac_system_check_acct(vfs_context_ucred(ctx), nd.ni_vp); in acct()
178 vnode_put(nd.ni_vp); in acct()
179 vn_close(nd.ni_vp, FWRITE, ctx); in acct()
183 vnode_put(nd.ni_vp); in acct()
185 if (nd.ni_vp->v_type != VREG) { in acct()
186 vn_close(nd.ni_vp, FWRITE, ctx); in acct()
220 acctp = nd.ni_vp; in acct()
H A Dimageboot.c550 vp = ndp.ni_vp; in ubc_getobject_from_filename()
601 vp = ndp.ni_vp; in imageboot_read_file_internal()
785 vp = ndp.ni_vp; in imgboot_get_image_file()
H A Dtty_dev.c169 error = vnode_setattr(nd.ni_vp, &va, ctx); in _devfs_setattr()
170 vnode_put(nd.ni_vp); in _devfs_setattr()
H A Dkern_symfile.c277 ref->vp = nd.ni_vp; in kern_open_file_for_direct_io()
H A Dkern_exec.c2853 imgp->ip_vp = ndp->ni_vp; /* if set, need to vnode_put() at some point */ in exec_activate_image()
2964 if (imgp->ip_flags & IMGPF_INTERPRET && ndp->ni_vp) { in exec_activate_image()
2965 AUDIT_ARG(vnpath, ndp->ni_vp, ARG_VNODE2); in exec_activate_image()
2975 (uintptr_t)ndp->ni_vp, 0); in exec_activate_image()
7614 fp_set_data(fp, ndp->ni_vp); in exec_handle_sugid()
7616 vnode_put(ndp->ni_vp); in exec_handle_sugid()
H A Duipc_usrreq.c1198 vp = nd.ni_vp; in unp_bind()
1330 vp = nd.ni_vp; in unp_connect()
H A Dmach_loader.c3932 vp = ndp->ni_vp; in get_macho_vnode()
/xnu-12377.81.4/bsd/sys/
H A Dnamei.h115 struct vnode *ni_vp; /* vnode of result */ member
/xnu-12377.81.4/bsd/nfs/
H A Dnfs_serv.c702 if (!error && mac_vnode_check_open(ctx, ni.ni_vp, FREAD)) { in nfsrv_lookup()
709 if (ni.ni_vp) { in nfsrv_lookup()
710 vnode_put(ni.ni_vp); in nfsrv_lookup()
711 ni.ni_vp = NULL; in nfsrv_lookup()
727 vp = ni.ni_vp; in nfsrv_lookup()
2056 vp = ni.ni_vp; in nfsrv_create()
2232 vp = ni.ni_vp; in nfsrv_create()
2413 vp = ni.ni_vp; in nfsrv_mknod()
2519 vp = ni.ni_vp; in nfsrv_mknod()
2662 vp = ni.ni_vp; in nfsrv_remove()
[all …]
H A Dnfs_subs.c1008 if (nip->ni_vp) { in nfsrv_namei()
1009 vnode_put(nip->ni_vp); in nfsrv_namei()
1010 nip->ni_vp = NULL; in nfsrv_namei()
1684 mvp = mnd.ni_vp; in nfsrv_export()
1785 mvp = mnd.ni_vp; in nfsrv_export()
1819 mvp = mnd.ni_vp; in nfsrv_export()
2022 xvp = xnd.ni_vp; in nfsrv_export()
H A Dnfs_syscalls.c264 vp = nd.ni_vp; in nfsrv_export_remainder()
332 vp = nd.ni_vp; in getfh()
/xnu-12377.81.4/security/
H A Dmac_base.c1377 vp = nd.ni_vp; in mac_get_filelink()
1505 vp = nd.ni_vp; in mac_set_filelink()
1658 mp = nd.ni_vp->v_mount; in __mac_get_mount()
1660 vnode_put(nd.ni_vp); in __mac_get_mount()
/xnu-12377.81.4/bsd/security/audit/
H A Daudit_syscalls.c1215 vp = nd.ni_vp; in auditctl()