| /f-stack/freebsd/kern/ |
| H A D | vfs_lookup.c | 553 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 D | kern_ctf.c | 114 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 D | vfs_extattr.c | 110 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 D | vfs_syscalls.c | 208 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 D | kern_acct.c | 228 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 D | link_elf_obj.c | 683 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 D | kern_linker.c | 1810 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 D | vfs_acl.c | 383 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 D | vfs_mountroot.c | 364 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 D | link_elf.c | 985 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 D | kern_alq.c | 454 VOP_UNLOCK(nd.ni_vp); in alq_open_flags() 457 alq->aq_vp = nd.ni_vp; in alq_open_flags()
|
| H A D | vfs_vnops.c | 252 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 D | imgact_elf.c | 794 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 D | uipc_usrreq.c | 645 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 D | vfs_mount.c | 1355 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 D | vfs_cache.c | 3426 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 D | kern_ktrace.c | 956 vp = nd.ni_vp; in sys_ktrace()
|
| H A D | vfs_default.c | 864 mvp = *dvp = nd.ni_vp; in vop_stdvptocnp()
|
| /f-stack/freebsd/security/mac_veriexec_parser/ |
| H A D | mac_veriexec_parser.c | 273 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 D | mac_syscalls.c | 370 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 D | mac_veriexec.c | 711 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 D | namei.h | 91 struct vnode *ni_vp; /* vnode of result */ member
|
| /f-stack/freebsd/security/audit/ |
| H A D | audit_syscalls.c | 810 vp = nd.ni_vp; in sys_auditctl()
|
| /f-stack/freebsd/vm/ |
| H A D | swap_pager.c | 2327 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 D | zfs_vnops_os.c | 5313 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()
|