Home
last modified time | relevance | path

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

/xnu-8019.80.24/bsd/vfs/
H A Dvfs_lookup.c224 … going on a continued lookup, but for vp type %d (tag %d)", ndp->ni_vp->v_type, ndp->ni_vp->v_tag); in namei()
444 ndp->ni_vp = NULLVP; in namei()
528 if (ndp->ni_vp) { in namei()
529 vnode_put(ndp->ni_vp); in namei()
560 ndp->ni_vp = NULLVP; in namei()
756 ndp->ni_vp = svp; /* on create this may be null */ in lookup_handle_rsrc_fork()
807 dp = ndp->ni_vp; in lookup_handle_found_vnode()
810 if (ndp->ni_vp == NULLVP) { in lookup_handle_found_vnode()
837 dp = ndp->ni_vp; in lookup_handle_found_vnode()
955 dp = ndp->ni_vp; in lookup_handle_found_vnode()
[all …]
H A Dvfs_syscalls.c308 vp = nd.ni_vp; in kernel_mount()
537 vp = nd.ni_vp; in __mac_mount()
1034 devvp = nd.ni_vp; in mount_common()
1640 vp = nd.ni_vp; in authorize_devpath_and_update_mntfromname()
2080 vnode_put(qnd.ni_vp); in enablequotas()
2237 vp = nd.ni_vp; in unmount()
2951 mp = nd.ni_vp->v_mount; in quotactl()
2953 vnode_put(nd.ni_vp); in quotactl()
3071 vp = nd.ni_vp; in statfs()
3204 vp = ndp->ni_vp; in statfs64()
[all …]
H A Dvfs_vnops.c237 if ((error = vnode_makenamedstream(dvp, &ndp->ni_vp, XATTR_RESOURCEFORK_NAME, 0, ctx)) != 0) { in vn_open_auth_do_create()
249 error = vn_create(dvp, &ndp->ni_vp, ndp, vap, VN_CREATE_DOOPEN, fmode, &status, ctx); in vn_open_auth_do_create()
285 vp = ndp->ni_vp; in vn_open_auth_do_create()
444 vp = ndp->ni_vp; in vn_open_auth()
464 vp = ndp->ni_vp; in vn_open_auth()
508 error = VNOP_COMPOUND_OPEN(dvp, &ndp->ni_vp, ndp, 0, fmode, NULL, NULL, ctx); in vn_open_auth()
511 vp = ndp->ni_vp; in vn_open_auth()
563 vp = ndp->ni_vp; in vn_open_auth()
569 error = VNOP_COMPOUND_OPEN(dvp, &ndp->ni_vp, ndp, 0, fmode, NULL, NULL, ctx); in vn_open_auth()
570 vp = ndp->ni_vp; in vn_open_auth()
[all …]
H A Dkpi_vfs.c4311 if (fromnd->ni_vp) { in vn_rename()
4313 src_attr_vp = fromnd->ni_vp; in vn_rename()
4315 if (fromnd->ni_vp->v_type != VREG) { in vn_rename()
4317 vnode_put(fromnd->ni_vp); in vn_rename()
4411 if (tond->ni_vp) { in vn_rename()
4412 dst_attr_vp = tond->ni_vp; in vn_rename()
4988 xvp = nd.ni_vp; in xattrfile_remove()
5072 xvp = nd.ni_vp; in xattrfile_setattr()
H A Dvfs_xattr.c2537 if ((xvp = nd->ni_vp) == NULLVP) { in open_xattrfile()
2572 error = vn_create(dvp, &nd->ni_vp, nd, va, in open_xattrfile()
2579 xvp = nd->ni_vp; in open_xattrfile()
2595 xvp = nd->ni_vp; in open_xattrfile()
2743 xvp = nd.ni_vp; in remove_xattrfile()
H A Dvfs_attrlist.c3369 vp = nd.ni_vp; in getattrlistat_internal()
3874 vp = nd.ni_vp; in readdirattr()
4692 vp = nd.ni_vp; in setattrlist()
4727 vp = nd.ni_vp; in setattrlistat()
H A Dvfs_cache.c1945 ndp->ni_vp = vp; in cache_lookup_path()
H A Dvfs_subr.c6741 *vpp = ndp->ni_vp; in vnode_lookupat()
6794 *vpp = ndp->ni_vp; in vnode_open()
11376 vp = ndp->ni_vp; in vfs_addtrigger()
/xnu-8019.80.24/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.c528 vp = ndp.ni_vp; in ubc_getobject_from_filename()
579 vp = ndp.ni_vp; in imageboot_read_file_internal()
737 vp = ndp.ni_vp; in imgboot_get_image_file()
H A Dtty_dev.c168 error = vnode_setattr(nd.ni_vp, &va, ctx); in _devfs_setattr()
169 vnode_put(nd.ni_vp); in _devfs_setattr()
H A Dkern_exec.c1823 imgp->ip_vp = ndp->ni_vp; /* if set, need to vnode_put() at some point */ in exec_activate_image()
1934 if (imgp->ip_flags & IMGPF_INTERPRET && ndp->ni_vp) { in exec_activate_image()
1935 AUDIT_ARG(vnpath, ndp->ni_vp, ARG_VNODE2); in exec_activate_image()
1945 (uintptr_t)ndp->ni_vp, 0); in exec_activate_image()
6211 fp_set_data(fp, ndp->ni_vp); in exec_handle_sugid()
6213 vnode_put(ndp->ni_vp); in exec_handle_sugid()
H A Dkern_symfile.c270 ref->vp = nd.ni_vp; in kern_open_file_for_direct_io()
H A Duipc_usrreq.c1111 vp = nd.ni_vp; in unp_bind()
1242 vp = nd.ni_vp; in unp_connect()
H A Dmach_loader.c3475 vp = ndp->ni_vp; in get_macho_vnode()
/xnu-8019.80.24/bsd/dev/vn/
H A Dvn.c1155 if (nd.ni_vp->v_type != VREG) { in vniocattach_file()
1158 error = vnode_size(nd.ni_vp, &file_size, ctx); in vniocattach_file()
1161 (void) vn_close(nd.ni_vp, flags, ctx); in vniocattach_file()
1162 vnode_put(nd.ni_vp); in vniocattach_file()
1166 nd.ni_vp->v_flag |= VNOCACHE_DATA; in vniocattach_file()
1167 error = setcred(nd.ni_vp, cred); in vniocattach_file()
1169 (void)vn_close(nd.ni_vp, flags, ctx); in vniocattach_file()
1170 vnode_put(nd.ni_vp); in vniocattach_file()
1177 vn->sc_vp = nd.ni_vp; in vniocattach_file()
1178 vn->sc_vid = vnode_vid(nd.ni_vp); in vniocattach_file()
[all …]
/xnu-8019.80.24/bsd/nfs/
H A Dnfs_serv.c693 if (!error && mac_vnode_check_open(ctx, ni.ni_vp, FREAD)) { in nfsrv_lookup()
700 if (ni.ni_vp) { in nfsrv_lookup()
701 vnode_put(ni.ni_vp); in nfsrv_lookup()
702 ni.ni_vp = NULL; in nfsrv_lookup()
718 vp = ni.ni_vp; in nfsrv_lookup()
2057 vp = ni.ni_vp; in nfsrv_create()
2233 vp = ni.ni_vp; in nfsrv_create()
2409 vp = ni.ni_vp; in nfsrv_mknod()
2515 vp = ni.ni_vp; in nfsrv_mknod()
2654 vp = ni.ni_vp; in nfsrv_remove()
[all …]
H A Dnfs_subs.c2505 if (nip->ni_vp) { in nfsrv_namei()
2506 vnode_put(nip->ni_vp); in nfsrv_namei()
2507 nip->ni_vp = NULL; in nfsrv_namei()
3163 mvp = mnd.ni_vp; in nfsrv_export()
3264 mvp = mnd.ni_vp; in nfsrv_export()
3306 mvp = mnd.ni_vp; in nfsrv_export()
3509 xvp = xnd.ni_vp; in nfsrv_export()
H A Dnfs_boot.c1228 vp = nd.ni_vp; in nfs_mount_diskless_private()
H A Dnfs_syscalls.c576 vp = nd.ni_vp; in getfh()
/xnu-8019.80.24/bsd/sys/
H A Dnamei.h116 struct vnode *ni_vp; /* vnode of result */ member
/xnu-8019.80.24/security/
H A Dmac_base.c1485 vp = nd.ni_vp; in mac_get_filelink()
1682 vp = nd.ni_vp; in mac_set_filelink()
1875 mp = nd.ni_vp->v_mount; in __mac_get_mount()
1877 vnode_put(nd.ni_vp); in __mac_get_mount()
/xnu-8019.80.24/bsd/security/audit/
H A Daudit_syscalls.c1208 vp = nd.ni_vp; in auditctl()