Home
last modified time | relevance | path

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

12

/f-stack/freebsd/kern/
H A Dvfs_lookup.c553 ndp->ni_vp = NULL; in namei()
636 ndp->ni_vp); in namei()
680 vput(ndp->ni_vp); in namei()
693 vput(ndp->ni_vp); in namei()
694 ndp->ni_vp = NULL; in namei()
930 ndp->ni_vp = dp; in lookup()
1031 ndp->ni_vp = NULL; in lookup()
1079 ndp->ni_vp = dp; in lookup()
1121 dp = ndp->ni_vp; in lookup()
1690 if (nd.ni_vp == ndroot.ni_vp) in kern_alternate_path()
[all …]
H A Dkern_ctf.c114 if ((error = vn_rdwr(UIO_READ, nd.ni_vp, hdr, sizeof(*hdr),
136 if ((error = vn_rdwr(UIO_READ, nd.ni_vp, (caddr_t)shdr, nbytes,
158 if ((error = vn_rdwr(UIO_READ, nd.ni_vp, shstrtab,
177 if ((error = vn_rdwr(UIO_READ, nd.ni_vp, ctf_hdr, sizeof(ctf_hdr),
240 if ((error = vn_rdwr(UIO_READ, nd.ni_vp, raw == NULL ? ctftab : raw,
296 VOP_UNLOCK(nd.ni_vp);
297 vn_close(nd.ni_vp, FREAD, td->td_ucred, td);
H A Dvfs_extattr.c110 filename_vp = nd.ni_vp; in sys_extattrctl()
120 mp = nd.ni_vp->v_mount; in sys_extattrctl()
127 VOP_UNLOCK(nd.ni_vp); in sys_extattrctl()
128 error = vn_start_write(nd.ni_vp, &mp_writable, V_WAIT | PCATCH); in sys_extattrctl()
311 error = extattr_set_vp(nd.ni_vp, attrnamespace, attrname, data, in kern_extattr_set_path()
314 vrele(nd.ni_vp); in kern_extattr_set_path()
476 error = extattr_get_vp(nd.ni_vp, attrnamespace, attrname, data, in kern_extattr_get_path()
479 vrele(nd.ni_vp); in kern_extattr_get_path()
608 error = extattr_delete_vp(nd.ni_vp, attrnamespace, attrname, td); in kern_extattr_delete_path()
609 vrele(nd.ni_vp); in kern_extattr_delete_path()
[all …]
H A Dvfs_syscalls.c208 vput(nd.ni_vp); in sys_quotactl()
342 vput(nd.ni_vp); in kern_statfs()
995 vput(nd.ni_vp); in sys_chroot()
1171 vp = nd.ni_vp; in kern_openat()
1324 vp = nd.ni_vp; in kern_mknodat()
1773 if (nd.ni_vp) in sys_undelete()
1882 vp = nd.ni_vp; in kern_funlinkat()
2105 vp = nd.ni_vp; in kern_accessat()
2603 vp = nd.ni_vp; in kern_readlinkat()
3396 vp = nd.ni_vp; in kern_truncate()
[all …]
H A Dkern_acct.c228 error = mac_system_check_acct(td->td_ucred, nd.ni_vp); in sys_acct()
230 VOP_UNLOCK(nd.ni_vp); in sys_acct()
231 vn_close(nd.ni_vp, flags, td->td_ucred, td); in sys_acct()
235 VOP_UNLOCK(nd.ni_vp); in sys_acct()
236 if (nd.ni_vp->v_type != VREG) { in sys_acct()
237 vn_close(nd.ni_vp, flags, td->td_ucred, td); in sys_acct()
292 acct_vp = nd.ni_vp; in sys_acct()
H A Dlink_elf_obj.c683 if (nd->ni_vp->v_type != VREG) { in link_elf_load_file()
688 error = mac_kld_check_load(td->td_ucred, nd->ni_vp); in link_elf_load_file()
855 error = vn_rdwr(UIO_READ, nd->ni_vp, ef->ddbstrtab, in link_elf_load_file()
874 error = vn_rdwr(UIO_READ, nd->ni_vp, ef->shstrtab, in link_elf_load_file()
1035 error = vn_rdwr(UIO_READ, nd->ni_vp, in link_elf_load_file()
1078 error = vn_rdwr(UIO_READ, nd->ni_vp, in link_elf_load_file()
1099 error = vn_rdwr(UIO_READ, nd->ni_vp, in link_elf_load_file()
1145 VOP_UNLOCK(nd->ni_vp); in link_elf_load_file()
1147 vn_lock(nd->ni_vp, LK_EXCLUSIVE | LK_RETRY); in link_elf_load_file()
1173 VOP_UNLOCK(nd->ni_vp); in link_elf_load_file()
[all …]
H A Dkern_linker.c1810 type = nd.ni_vp->v_type; in linker_lookup_file()
1812 VOP_GETATTR(nd.ni_vp, vap, td->td_ucred); in linker_lookup_file()
1813 VOP_UNLOCK(nd.ni_vp); in linker_lookup_file()
1861 if (nd.ni_vp->v_type != VREG) in linker_hints_lookup()
1864 error = VOP_GETATTR(nd.ni_vp, &vattr, cred); in linker_hints_lookup()
1879 VOP_UNLOCK(nd.ni_vp); in linker_hints_lookup()
1880 vn_close(nd.ni_vp, FREAD, cred, td); in linker_hints_lookup()
1881 nd.ni_vp = NULL; in linker_hints_lookup()
1946 if (nd.ni_vp != NULL) { in linker_hints_lookup()
1947 VOP_UNLOCK(nd.ni_vp); in linker_hints_lookup()
[all …]
H A Dvfs_acl.c383 error = vacl_get_acl(td, nd.ni_vp, type, aclp); in kern___acl_get_path()
421 error = vacl_set_acl(td, nd.ni_vp, type, aclp); in kern___acl_set_path()
497 error = vacl_delete(td, nd.ni_vp, type); in kern___acl_delete_path()
554 error = vacl_aclcheck(td, nd.ni_vp, type, aclp); in kern___acl_aclcheck_path()
H A Dvfs_mountroot.c364 vp = nd.ni_vp; in vfs_mountroot_shuffle()
389 vp = nd.ni_vp; in vfs_mountroot_shuffle()
728 vput(nd.ni_vp); in parse_mount_dev_present()
958 error = vn_rdwr(UIO_READ, nd.ni_vp, buf, len, ofs, in vfs_mountroot_readconf()
970 VOP_UNLOCK(nd.ni_vp); in vfs_mountroot_readconf()
971 vn_close(nd.ni_vp, FREAD, td->td_ucred, td); in vfs_mountroot_readconf()
H A Dlink_elf.c985 if (nd.ni_vp->v_type != VREG) { in link_elf_load_file()
991 error = mac_kld_check_load(curthread->td_ucred, nd.ni_vp); in link_elf_load_file()
1003 error = vn_rdwr(UIO_READ, nd.ni_vp, firstpage, PAGE_SIZE, 0, in link_elf_load_file()
1166 error = vn_rdwr(UIO_READ, nd.ni_vp, in link_elf_load_file()
1202 VOP_UNLOCK(nd.ni_vp); in link_elf_load_file()
1204 vn_lock(nd.ni_vp, LK_EXCLUSIVE | LK_RETRY); in link_elf_load_file()
1247 error = vn_rdwr(UIO_READ, nd.ni_vp, in link_elf_load_file()
1288 error = vn_rdwr(UIO_READ, nd.ni_vp, in link_elf_load_file()
1294 error = vn_rdwr(UIO_READ, nd.ni_vp, in link_elf_load_file()
1319 VOP_UNLOCK(nd.ni_vp); in link_elf_load_file()
[all …]
H A Dkern_alq.c454 VOP_UNLOCK(nd.ni_vp); in alq_open_flags()
457 alq->aq_vp = nd.ni_vp; in alq_open_flags()
H A Dvfs_vnops.c252 if (ndp->ni_vp == NULL) { in vn_open_cred()
274 error = VOP_CREATE(ndp->ni_dvp, &ndp->ni_vp, in vn_open_cred()
276 VOP_VPUT_PAIR(ndp->ni_dvp, error == 0 ? &ndp->ni_vp : in vn_open_cred()
288 vp = ndp->ni_vp; in vn_open_cred()
290 if (ndp->ni_dvp == ndp->ni_vp) in vn_open_cred()
295 vp = ndp->ni_vp; in vn_open_cred()
315 vp = ndp->ni_vp; in vn_open_cred()
326 ndp->ni_vp = NULL; in vn_open_cred()
H A Dimgact_elf.c794 nd->ni_vp = NULL; in __elfN()
798 imgp->vp = nd->ni_vp; in __elfN()
811 imgp->object = nd->ni_vp->v_object; in __elfN()
848 if (nd->ni_vp) { in __elfN()
850 VOP_UNSET_TEXT_CHECKED(nd->ni_vp); in __elfN()
851 vput(nd->ni_vp); in __elfN()
H A Duipc_usrreq.c645 vp = nd.ni_vp; in uipc_bindat()
670 error = VOP_CREATE(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr); in uipc_bindat()
679 vp = nd.ni_vp; in uipc_bindat()
1570 vp = nd.ni_vp; in unp_connectat()
H A Dvfs_mount.c1355 vp = nd.ni_vp; in vfs_domount()
1442 error = vn_path_to_global_path(td, nd.ni_vp, pathbuf, in kern_unmount()
1445 vput(nd.ni_vp); in kern_unmount()
H A Dvfs_cache.c3426 vp = ndp->ni_vp; in vn_fullpath_hardlink()
3586 vp1 = nd.ni_vp; in vn_path_to_global_path()
5823 SDT_PROBE4(vfs, namei, lookup, return, error, ndp->ni_vp, true, in cache_fplookup()
5835 ndp->ni_vp = fpl.tvp; in cache_fplookup()
H A Dkern_ktrace.c956 vp = nd.ni_vp; in sys_ktrace()
H A Dvfs_default.c864 mvp = *dvp = nd.ni_vp; in vop_stdvptocnp()
/f-stack/freebsd/security/mac_veriexec_parser/
H A Dmac_veriexec_parser.c273 rc = VOP_GETATTR(nid.ni_vp, &va, curthread->td_ucred); in read_manifest()
281 UIO_READ, nid.ni_vp, data, in read_manifest()
293 VOP_UNLOCK(nid.ni_vp); in read_manifest()
294 (void)vn_close(nid.ni_vp, FREAD, curthread->td_ucred, curthread); in read_manifest()
356 rc = VOP_GETATTR(nid.ni_vp, &va, curthread->td_ucred); in parse_entry()
372 VOP_UNLOCK(nid.ni_vp); in parse_entry()
373 vn_close(nid.ni_vp, FREAD, curthread->td_ucred, curthread); in parse_entry()
/f-stack/freebsd/security/mac/
H A Dmac_syscalls.c370 mac_vnode_copy_label(nd.ni_vp->v_label, intlabel); in kern___mac_get_path()
540 error = vn_start_write(nd.ni_vp, &mp, V_WAIT | PCATCH); in kern___mac_set_path()
542 error = vn_setlabel(nd.ni_vp, intlabel, in kern___mac_set_path()
/f-stack/freebsd/security/mac_veriexec/
H A Dmac_veriexec.c711 error = mac_veriexec_check_vp(td->td_ucred, nd.ni_vp, VVERIFY); in mac_veriexec_syscall()
712 vput(nd.ni_vp); in mac_veriexec_syscall()
/f-stack/freebsd/sys/
H A Dnamei.h91 struct vnode *ni_vp; /* vnode of result */ member
/f-stack/freebsd/security/audit/
H A Daudit_syscalls.c810 vp = nd.ni_vp; in sys_auditctl()
/f-stack/freebsd/vm/
H A Dswap_pager.c2327 vp = nd.ni_vp; in sys_swapon()
2464 vp = nd.ni_vp; in sys_swapoff()
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_vnops_os.c5313 vp = nd.ni_vp; in zfs_getextattr()
5387 vp = nd.ni_vp; in zfs_deleteextattr()
5464 vp = nd.ni_vp; in zfs_setextattr()
5552 vp = nd.ni_vp; in zfs_listextattr()

12