Home
last modified time | relevance | path

Searched refs:NULLVP (Results 1 – 25 of 40) sorted by relevance

12

/xnu-12377.1.9/bsd/vfs/
H A Dvfs_cache.c305 *next_vp = NULLVP; in cache_check_vnode_issubdir()
335 *next_vp = NULLVP; in cache_check_vnode_issubdir()
381 vp_with_iocount = NULLVP; in vnode_issubdir()
427 vp_with_iocount = NULLVP; in vnode_issubdir()
454 pvp = NULLVP; in vnode_issubdir()
526 if (first_vp == NULLVP) { in build_path_with_parent()
543 vp_with_iocount = NULLVP; in build_path_with_parent()
625 while ((vp != NULLVP) && (vp->v_parent != vp)) { in build_path_with_parent()
673 if (((vp->v_parent != NULLVP) && !fixhardlink) || in build_path_with_parent()
682 if ((vp->v_parent == NULLVP) && (rootvnode != vp)) { in build_path_with_parent()
[all …]
H A Dvfs_lookup.c210 vnode_t rootdir_with_usecount = NULLVP; in namei()
211 vnode_t startdir_with_usecount = NULLVP; in namei()
212 vnode_t usedvp_dp = NULLVP; in namei()
390 vnode_t rdvp = NULLVP; in namei()
406 rdvp = NULLVP; in namei()
421 rdvp = NULLVP; in namei()
503 ndp->ni_usedvp = NULLVP; in namei()
531 if (dp == NULLVP || (dp->v_lflag & VL_DEAD)) { in namei()
532 dp = NULLVP; in namei()
579 ndp->ni_dvp = NULLVP; in namei()
[all …]
H A Dvfs_xattr.c754 vnode_t dvp = NULLVP; in getshadowfile()
755 vnode_t svp = NULLVP; in getshadowfile()
861 dvp = NULLVP; in getshadowfile()
865 svp = NULLVP; in getshadowfile()
880 svp = NULLVP; in getshadowfile()
894 vnode_t svp = NULLVP; in default_getnamedstream()
909 *svpp = NULLVP; in default_getnamedstream()
921 *svpp = NULLVP; in default_getnamedstream()
956 svp = NULLVP; in default_getnamedstream()
1043 svp = NULLVP; in default_getnamedstream()
[all …]
H A Dvfs_subr.c1133 mp->mnt_realrootvp = NULLVP; in vfs_rootmountalloc_internal()
1148 mp->mnt_vnodecovered = NULLVP; in vfs_rootmountalloc_internal()
1446 vnode_t incoming_rootvnode_with_usecount = NULLVP; in verify_incoming_rootfs()
1479 incoming_rootvnode_with_iocount = NULLVP; in verify_incoming_rootfs()
1487 tdp = NULLVP; in verify_incoming_rootfs()
1493 tdp = NULLVP; in verify_incoming_rootfs()
1520 incoming_rootvnode_with_usecount = NULLVP; in verify_incoming_rootfs()
1525 incoming_rootvnode_with_iocount = NULLVP; in verify_incoming_rootfs()
1570 vnode_t incoming_rootvnode = NULLVP; in vfs_switch_root()
1571 vnode_t outgoing_vol_new_covered_vp = NULLVP; in vfs_switch_root()
[all …]
H A Dvfs_exclave_fs.c291 while (vp != NULLVP) { in is_parent_registered()
721 vnode_t vp = NULLVP, dvp = NULLVP; in create_exclave_dir()
746 if (vp != NULLVP) { in create_exclave_dir()
775 if (vp->v_parent == NULLVP) { in create_exclave_dir()
1003 vnode_t dvp = NULLVP, vp = NULLVP; in exclave_fs_open_internal()
1091 error = vn_open_auth(ndp, &flags, vap, NULLVP); in exclave_fs_open_internal()
1162 vnode_t vp = NULLVP; in vfs_exclave_fs_close()
1198 vnode_t vp = NULLVP; in exclave_fs_io()
1277 vnode_t rvp = NULLVP; in vfs_exclave_fs_remove()
1311 vnode_t vp = NULLVP; in vfs_exclave_fs_sync()
[all …]
H A Dvfs_quota.c254 if (qfp->qf_vp != NULLVP) { in qf_get()
273 if (qfp->qf_vp == NULLVP) { in qf_get()
335 if ((qfp->qf_qflags & (QTF_OPENING | QTF_CLOSING)) || (qfp->qf_vp == NULLVP)) { in qf_ref()
365 qfp->qf_vp = NULLVP; in dqfileinit()
481 if (id == 0 || qfp->qf_vp == NULLVP) { in dqget()
493 if ((dqvp = qfp->qf_vp) == NULLVP) { in dqget()
998 if ((dqvp = dq->dq_qfile->qf_vp) == NULLVP) { in dqsync_locked()
H A Dvfs_syscalls.c318 if (vp == NULLVP) { in kernel_mount()
532 vnode_t metadata_vp = NULLVP; in graft_secureboot_read_fd()
570 metadata_vp = NULLVP; in graft_secureboot_read_fd()
734 vnode_t cryptex_vp = NULLVP; in graftdmg()
738 vnode_t parent_vp = NULLVP; in graftdmg()
766 if (parent_vp == NULLVP) { in graftdmg()
796 cryptex_vp, graft_on_parent ? NULLVP : nd.ni_vp); in graftdmg()
807 if (parent_vp != NULLVP) { in graftdmg()
809 parent_vp = NULLVP; in graftdmg()
812 if (cryptex_vp != NULLVP) { in graftdmg()
[all …]
H A Dvfs_vnops.c177 error = vn_open_auth(ndp, fmodep, vap, NULLVP); in vn_open_modflags()
291 if (vp->v_parent == NULLVP) { in vn_open_auth_do_create()
300 ndp->ni_dvp = NULLVP; in vn_open_auth_do_create()
311 if (ndp->ni_dvp != NULLVP) { in vn_open_auth_do_create()
313 ndp->ni_dvp = NULLVP; in vn_open_auth_do_create()
401 if ((authvp != NULLVP) in vn_open_auth()
540 ndp->ni_dvp = NULLVP; in vn_open_auth()
596 if (batched && ((vp == NULLVP) || (vnode_mount(dvp) == vnode_mount(vp)))) { in vn_open_auth()
622 ndp->ni_dvp = NULLVP; in vn_open_auth()
632 if (ndp->ni_dvp != NULLVP) { in vn_open_auth()
[all …]
H A Dkpi_vfs.c889 if ((vp != NULLVP) && (vnode_get(vp) == 0)) { in vfs_devvp()
893 return NULLVP; in vfs_devvp()
1582 vnode_t cwd = NULLVP; in vfs_context_cwd()
1593 if ((cwd = uth->uu_cdir) == NULLVP && in vfs_context_cwd()
1822 vnode_t vp = NULLVP; in vfs_rootvnode()
1828 vp = NULLVP; in vfs_rootvnode()
3387 *out_vpp = NULLVP; in vnode_getbackingvnode()
3547 if (dvp == NULLVP) { in VNOP_COMPOUND_OPEN()
3591 *vpp = NULLVP; in VNOP_COMPOUND_OPEN()
3888 if (dvp != NULLVP) { in VNOP_SETATTR()
[all …]
H A Dvfs_init.c401 mp->mnt_realrootvp = NULLVP; in vfsinit()
/xnu-12377.1.9/bsd/kern/
H A Dkern_acct.c204 if (acctp != NULLVP || suspend_acctp != NULLVP) { in acct()
206 error = vn_close((acctp != NULLVP ? acctp : suspend_acctp), in acct()
209 acctp = suspend_acctp = NULLVP; in acct()
248 if (vp == NULLVP) { in acct_process()
377 if (suspend_acctp != NULLVP) { in acctwatch()
385 suspend_acctp = NULLVP; in acctwatch()
392 suspend_acctp = NULLVP; in acctwatch()
395 } else if (acctp != NULLVP) { in acctwatch()
403 acctp = NULLVP; in acctwatch()
410 acctp = NULLVP; in acctwatch()
H A Dimageboot.c205 vnode_t mount_vp = NULLVP; in imageboot_pivot_image()
218 vnode_t imagevp = NULLVP; in imageboot_pivot_image()
298 …error = kernel_mount("hfs", NULLVP, NULLVP, PIVOTMNT, fulldevnamepp, 0, (MNT_RDONLY | MNT_DONTBROW… in imageboot_pivot_image()
302 …error = kernel_mount("apfs", NULLVP, NULLVP, PIVOTMNT, fulldevnamepp, 0, (MNT_RDONLY | MNT_DONTBRO… in imageboot_pivot_image()
348 mount_vp = NULLVP; in imageboot_pivot_image()
406 if (imagevp != NULLVP) { in imageboot_pivot_image()
839 vnode_t vp = NULLVP; in authenticate_root_with_img4()
937 imgsrc_rootvnodes[i] = NULLVP; in imageboot_mount_ramdisk()
959 rootvp = NULLVP; in imageboot_mount_ramdisk()
H A Dtty_tty.c264 vp = (p->p_flag & P_CONTROLT ? sessp->s_ttyvp : NULLVP); in cttyvp()
273 if (vp != NULLVP) { in cttyvp()
277 vp = NULLVP; in cttyvp()
H A Dkern_shutdown.c109 static vnode_t sd_logvp = NULLVP;
371 sd_logvp = NULLVP; in sd_openlog()
388 if (sd_logvp != NULLVP) { in sd_closelog()
391 sd_logvp = NULLVP; in sd_closelog()
406 if (sd_logvp == NULLVP) { in sd_log()
H A Dkern_symfile.c272 if ((error = vn_open_auth(&nd, &fmode, &va, NULLVP))) { in kern_open_file_for_direct_io()
623 ref->vp = NULLVP; in kern_open_file_for_direct_io()
651 ref->vp = NULLVP; in kern_open_file_for_direct_io()
755 ref->vp = NULLVP; in kern_close_file_for_direct_io()
762 error = unlink1(ref->ctx, NULLVP, CAST_USER_ADDR_T(ref->name), UIO_SYSSPACE, 0); in kern_close_file_for_direct_io()
H A Dbsd_init.c488 vnode_t init_rootvnode = NULLVP; in bsd_init()
931 init_rootvnode = NULLVP; /* use rootvnode after this point */ in bsd_init()
1339 vnode_t imagevp = NULLVP; in bsd_find_basesystem_dmg()
1493 if (imagevp != NULLVP) { in bsd_find_basesystem_dmg()
H A Dproc_info.c1035 if (vp != NULLVP) { in bsd_threadcdir()
1049 vnode_t vp = NULLVP; in proc_pidthreadpathinfo()
1062 if ((vp != NULLVP) && ((vnode_getwithvid(vp, vid)) == 0)) { in proc_pidthreadpathinfo()
1320 vnode_t vncdirvp = NULLVP; in proc_pidvnodepathinfo()
1322 vnode_t vnrdirvp = NULLVP; in proc_pidvnodepathinfo()
1339 if (vncdirvp != NULLVP) { in proc_pidvnodepathinfo()
1354 if ((error == 0) && (vnrdirvp != NULLVP)) { in proc_pidvnodepathinfo()
1388 if (tvp == NULLVP) { in proc_pidpathinfo()
1414 if (tvp == NULLVP) { in proc_pidpathinfo_internal()
1427 vnode_t nvp = NULLVP; in proc_pidpathinfo_internal()
[all …]
H A Dkern_descrip.c2774 struct vnode *vp = NULLVP; /* for AUDIT_ARG() at end */ in sys_fcntl_nocancel()
4420 if (vnode_authorize(vp, NULLVP, (KAUTH_VNODE_ACCESS | KAUTH_VNODE_WRITE_DATA), ctx) != 0) { in sys_fcntl_nocancel()
4532 struct vnode *src_vp = NULLVP; in sys_fcntl_nocancel()
4533 struct vnode *dst_vp = NULLVP; in sys_fcntl_nocancel()
4625 if (vnode_authorize(src_vp, NULLVP, in sys_fcntl_nocancel()
4634 if (vnode_authorize(dst_vp, NULLVP, in sys_fcntl_nocancel()
4667 struct vnode *src_vp = NULLVP; in sys_fcntl_nocancel()
4668 struct vnode *dst_vp = NULLVP; in sys_fcntl_nocancel()
4769 if (vnode_authorize(src_vp, NULLVP, in sys_fcntl_nocancel()
4777 if (vnode_authorize(dst_vp, NULLVP, in sys_fcntl_nocancel()
[all …]
H A Dkern_fork.c1067 if (child_proc->p_textvp != NULLVP) { in forkproc()
1076 child_proc->p_textvp = NULLVP; in forkproc()
1476 uth->uu_cdir = NULLVP; in uthread_cleanup()
H A Dkern_exit.c2164 vnode_t tvp = NULLVP; in proc_exit()
2288 if (sessp->s_ttyvp != NULLVP) { in proc_exit()
2327 if ((ttyvp != NULLVP) && (vnode_getwithvid(ttyvp, ttyvid) == 0)) { in proc_exit()
2350 ttyvp = NULLVP; in proc_exit()
2497 if (tvp != NULLVP) { in proc_exit()
/xnu-12377.1.9/bsd/miscfs/routefs/
H A Droutefs_ops.c126 if (rargs->route_rvp == NULLVP) { in routefs_mount()
197 if (routefs_mp_p->route_rvp != NULLVP) { in routefs_unmount()
201 routefs_mp_p->route_rvp = NULLVP; in routefs_unmount()
205 (void)vflush(mp, NULLVP, flags); in routefs_unmount()
221 if (routefs_mp_p->route_rvp == NULLVP) { in routefs_root()
223 if (routefs_mp_p->route_rvp == NULLVP) { in routefs_root()
236 routefs_mp_p->route_rvp = NULLVP; in routefs_root()
465 …error = kernel_mount(fsname, NULLVP, NULLVP, mounthere, &args, 0, MNT_DONTBROWSE, KERNEL_MOUNT_NOA… in routefs_kernel_mount()
471 if (args.route_rvp != NULLVP) { in routefs_kernel_mount()
/xnu-12377.1.9/bsd/dev/dtrace/
H A Ddtrace_subr.c124 vnode_t tvp = NULLVP, nvp = NULLVP; in dtrace_proc_get_execpath()
130 if ((tvp = p->p_textvp) == NULLVP) in dtrace_proc_get_execpath()
143 if (nvp != NULLVP) in dtrace_proc_get_execpath()
/xnu-12377.1.9/bsd/miscfs/devfs/
H A Ddevfs_vfsops.c253 error = vflush(mp, NULLVP, flags); in devfs_unmount()
494 …error = kernel_mount(fsname, NULLVP, NULLVP, mntname, NULL, 0, MNT_DONTBROWSE, KERNEL_MOUNT_NOAUTH… in devfs_kernel_mount()
H A Ddevfs_tree.c207 mp->mnt_realrootvp = NULLVP; in devfs_sinit()
1301 if ((dnp->dn_clone != NULL) && (dnp->dn_vn != NULLVP)) { in devfs_dntovn()
1428 if (dnp->dn_vn != NULLVP && vnode_ismonitored(dnp->dn_vn)) { in devfs_record_event()
/xnu-12377.1.9/bsd/vm/
H A Dvm_compressor_backing_file.c96 error = unlink1(context, NULLVP, CAST_USER_ADDR_T(path_addr), in vm_swapfile_close()

12