Home
last modified time | relevance | path

Searched refs:v_type (Results 1 – 25 of 37) sorted by relevance

12

/xnu-11215/bsd/sys/
H A Dxattr.h65 …((vp)->v_type == VREG || (vp)->v_type == VDIR || (vp)->v_type == VLNK || (vp)->v_type == VSOCK || …
H A Dvnode_internal.h176 uint8_t v_type; /* vnode type */ member
/xnu-11215/bsd/kern/
H A Dkern_symfile.c127 if (ref->vp->v_type == VREG) { in kern_ioctl_file_extents()
150 if (ref->vp->v_type == VREG) { in kern_ioctl_file_extents()
165 } else if ((ref->vp->v_type == VBLK) || (ref->vp->v_type == VCHR)) { in kern_ioctl_file_extents()
277 if (ref->vp->v_type == VREG) { in kern_open_file_for_direct_io()
308 if (ref->vp->v_type == VREG) { in kern_open_file_for_direct_io()
367 } else if ((ref->vp->v_type == VBLK) || (ref->vp->v_type == VCHR)) { in kern_open_file_for_direct_io()
400 if (ref->vp->v_type != VREG) { in kern_open_file_for_direct_io()
434 if (ref->vp->v_type == VREG) { in kern_open_file_for_direct_io()
447 } else if ((ref->vp->v_type == VBLK) || (ref->vp->v_type == VCHR)) { in kern_open_file_for_direct_io()
492 if (ref->vp->v_type == VREG) { in kern_open_file_for_direct_io()
[all …]
H A Dkern_acct.c185 if (nd.ni_vp->v_type != VREG) { in acct()
383 if (suspend_acctp->v_type == VBAD) { in acctwatch()
401 if (acctp->v_type == VBAD) { in acctwatch()
H A Dkern_mman.c568 if (vp->v_type != VREG && vp->v_type != VCHR) { in mmap()
590 if (vp->v_type == VCHR || vp->v_type == VSTR) { in mmap()
H A Dkern_core.c452 if (vp->v_type != VREG || in coredump()
/xnu-11215/osfmk/i386/
H A Dmtrr.c660 uint32_t v_type; in var_range_overlap() local
664 v_type = (uint32_t)(range->base & IA32_MTRR_PHYSBASE_TYPE); in var_range_overlap()
670 if (v_address == address && v_length == length && v_type == type) { in var_range_overlap()
672 } else if (v_type == MTRR_TYPE_UNCACHEABLE && in var_range_overlap()
675 } else if ((v_type == MTRR_TYPE_UNCACHEABLE && in var_range_overlap()
677 (v_type == MTRR_TYPE_WRITEBACK && in var_range_overlap()
/xnu-11215/bsd/vfs/
H A Dvfs_subr.c2186 if (nvp_rdev == vp->v_rdev && nvp->v_type == vp->v_type) { in checkalias()
2940 if (vp->v_type != VBLK && vp->v_type != VCHR) { in vflush()
3238 vq->v_type != vp->v_type || vp == vq) { in vn_revoke()
3353 vq->v_type != vp->v_type) { in vgone()
4138 vq->v_type != vp->v_type || vq == vp) { in vfs_mountedon()
4206 vq->v_type != vp->v_type || vq == vp) { in vfs_setmounting()
7067 if (vp->v_type == VCHR || vp->v_type == VBLK) { in vnode_create_internal()
8498 if (fvp->v_type == VDIR && tvp->v_type != VDIR) { in vn_authorize_renamex_with_paths()
8501 } else if (fvp->v_type != VDIR && tvp->v_type == VDIR) { in vn_authorize_renamex_with_paths()
10181 ((vp->v_type == VREG) || (vp->v_type == VDIR) || in vnode_authorize_callback_int()
[all …]
H A Dvfs_cache.c1069 switch (vp->v_type) { in vnode_getname_printable()
1079 "%c(%u, %u)", VCHR == vp->v_type ? 'c':'b', in vnode_getname_printable()
1578 if (action != KAUTH_VNODE_SEARCH || vp->v_type != VDIR) { in vnode_cache_is_authorized()
1634 if ((action & ~KAUTH_VNODE_SEARCH) || vp->v_type != VDIR) { in vnode_cache_authorized_action()
1748 (vp->v_type == VDIR)); in can_check_v_mountedhere()
2074 ((vp->v_type != VDIR) && (vp->v_type != VLNK))) { in cache_lookup_path()
2085 if (vp->v_type == VDIR) { in cache_lookup_path()
2105 if (vp->v_type != VDIR) { in cache_lookup_path()
2106 if (vp->v_type != VLNK) { in cache_lookup_path()
2212 (vp != NULLVP) && (vp->v_type != VLNK) && in cache_lookup_path()
[all …]
H A Dvfs_lookup.c231 …p going on a continued lookup, but for vp type %d (tag %d)", ndp->ni_vp->v_type, ndp->ni_vp->v_tag… in namei()
780 if (dp->v_type != VREG) { in lookup_handle_rsrc_fork()
937 if ((dp->v_type == VLNK) && in lookup_handle_found_vnode()
948 if (dp->v_type != VDIR) { in lookup_handle_found_vnode()
1073 if (dp->v_type != VDIR) { in lookup_handle_emptyname()
1357 if (dp->v_type != VDIR) {
1492 if ((dp->v_type == VLNK) &&
1647 if (dp->v_type != VDIR || cnp->cn_flags & NOCROSSMOUNT) {
1694 if (dp->v_type != VDIR) {
1919 if (dp->v_type != VDIR) {
[all …]
H A Dvfs_vnops.c1266 if (vp->v_type == VREG && (fp->fp_glob->fg_flag & O_APPEND)) { in vn_write()
1357 if (p && (vp->v_type == VREG) && in vn_write()
1531 switch (vp->v_type) { in vn_stat_noauth()
1694 switch (vp->v_type) { in vn_ioctl()
1743 if (vp->v_type == VBLK) { in vn_ioctl()
1749 } else if (vp->v_type == VCHR) { in vn_ioctl()
2254 if (vp->v_type != VREG) { in vnio_openfd()
H A Dkpi_vfs.c843 if (devvp->v_type != VBLK) { in vfs_setdevvp()
1858 return vp->v_type; in vnode_vtype()
2024 return (vp->v_type == VREG)? 1 : 0; in vnode_isreg()
2031 return (vp->v_type == VDIR)? 1 : 0; in vnode_isdir()
2038 return (vp->v_type == VLNK)? 1 : 0; in vnode_islnk()
2091 return (vp->v_type == VBLK)? 1 : 0; in vnode_isblk()
2097 return ((vp->v_type == VCHR) || (vp->v_type == VBLK)) ? 1 : 0; in vnode_isspec()
2118 enum vtype vt = vp->v_type; in vnode_isaliased()
3029 switch (vp->v_type) { in vnode_setattr()
5180 if (xvp->v_type != VREG) { in xattrfile_remove()
[all …]
H A Dvfs_syscalls.c2034 if (vp->v_type != VDIR) { in prepare_coveredvp()
4197 if (vp->v_type != VDIR) { in fchdir()
4593 if (vp->v_type != VDIR) { in change_dir()
5731 if (vp->v_type == VDIR) { in linkat_internal()
7491 if (vp->v_type != VLNK) { in readlinkat_internal()
8667 if (fvp->v_type == VDIR || (tvp && tvp->v_type == VDIR)) { in copyfile()
8754 enum vtype v_type; in clonefile_internal() local
8766 switch (v_type) { in clonefile_internal()
8864 if (v_type == VLNK) { in clonefile_internal()
12637 if (vp->v_type != VDIR && vp->v_type != VREG) { in vfs_materialize_reparent()
[all …]
H A Dvfs_fsevents.c853 … if ((vp->v_type == VDIR && va.va_dirlinkcount == 0) || (vp->v_type == VREG && va.va_nlink == 0)) { in add_fsevent()
2989 if (vp->v_type == VDIR) { in get_fse_info()
3014 if (vp->v_type == VDIR) { in vnode_get_fse_info_from_vap()
3053 if (vp->v_type == VDIR) { in create_fsevent_from_kevent()
3060 if (vp->v_type == VDIR) { in create_fsevent_from_kevent()
H A Dvfs_attrlist.c2272 if (vp && (vp->v_type == VCHR || vp->v_type == VBLK)) { in attr_pack_file()
2811 (vp->v_fmlink->v_type == VDIR) && in vfs_attr_pack_internal()
2943 switch (vp->v_type) { in vfs_attr_pack_internal()
3089 enum vtype v_type; in vfs_attr_pack_ext() local
3094 v_type = vnode_vtype(vp); in vfs_attr_pack_ext()
3096 v_type = vap->va_objtype; in vfs_attr_pack_ext()
3103 error = getattrlist_setupvattr_all(alp, vap, v_type, &fixedsize, in vfs_attr_pack_ext()
3117 options | FSOPT_REPORT_FULLSIZE, vap, NULL, ctx, 1, v_type, in vfs_attr_pack_ext()
3260 vtype = vp->v_type; in getattrlist_internal()
4141 if (dvp->v_type != VDIR) { in getattrlistbulk()
H A Dvfs_bio.c1100 if ((vp->v_type != VBLK) && (vp->v_type != VCHR)) { in buf_setdevice()
1438 if (vp == NULL || vp->v_type == VCHR || vp->v_type == VBLK) { in buf_strategy()
2100 if (vp->v_type == VBLK || vp->v_type == VCHR) { in bgetvp_locked()
4531 if (vp && (vp->v_type == VBLK || vp->v_type == VCHR)) { in alloc_io_buf()
/xnu-11215/bsd/miscfs/specfs/
H A Dspec_vnops.c290 if (vp->v_type == VBLK) { in set_fsblocksize()
367 switch (vp->v_type) { in spec_open()
543 switch (vp->v_type) { in spec_read()
683 switch (vp->v_type) { in spec_write()
2253 if (vp && (vp->v_type == VBLK || vp->v_type == VCHR)) { in throttle_info_end_io()
2684 if (vp && (vp->v_type == VBLK || vp->v_type == VCHR)) { in spec_strategy()
2720 if (!(vp && (vp->v_type == VBLK || vp->v_type == VCHR)) && mp) { in spec_strategy()
2724 } else if (!(vp && (vp->v_type == VBLK || vp->v_type == VCHR)) && mp) { in spec_strategy()
2804 switch (vp->v_type) { in spec_close()
2944 switch (vp->v_type) { in spec_blktooff()
[all …]
/xnu-11215/bsd/miscfs/devfs/
H A Ddevfs_vnops.c482 VATTR_RETURN(vap, va_type, vp->v_type); in devfs_getattr()
491 if (vp->v_type == VBLK) { in devfs_getattr()
493 } else if (vp->v_type == VCHR) { in devfs_getattr()
642 switch (ap->a_vp->v_type) { in devfs_read()
649 printf("devfs_read(): bad file type %d", ap->a_vp->v_type); in devfs_read()
795 switch (ap->a_vp->v_type) { in devfs_write()
799 printf("devfs_write(): bad file type %d", ap->a_vp->v_type); in devfs_write()
1089 if (fvp->v_type == VDIR) { in devfs_rename()
H A Ddevfs_fdesc_support.c231 (*vpp)->v_type = (uint16_t)vtype; in fdesc_allocvp()
502 vp->v_type = (uint16_t)vap->va_type; in fdesc_getattr()
666 vp->v_type = VNON; in fdesc_inactive()
/xnu-11215/osfmk/console/
H A Dvideo_console.h93 unsigned int v_type; member
H A Dvideo_console.c2821 new_vinfo.v_type = (unsigned int)boot_vinfo->v_display; in initialize_screen()
2823 new_vinfo.v_type = 0; in initialize_screen()
2851 …, new_vinfo.v_width, new_vinfo.v_height, new_vinfo.v_rowbytes, new_vinfo.v_type); /* (BRINGU… in initialize_screen()
/xnu-11215/bsd/miscfs/mockfs/
H A Dmockfs_vnops.c221 if (vp->v_type == VREG) { in mockfs_read()
394 if (vp->v_type == VREG) { in mockfs_blockmap()
/xnu-11215/bsd/tests/
H A Dvm_parameter_validation_kern_bsd.c60 if (vp->v_type != VREG) { in get_control_from_fd()
/xnu-11215/bsd/miscfs/deadfs/
H A Ddead_vnops.c181 if (ap->a_vp->v_type != VCHR) { in dead_read()
/xnu-11215/tools/lldbmacros/
H A Dmemory.py1741 if (vnode.v_type == vblk_type) or (vnode.v_type == vchr_type):
1750 if (vnode.v_type == vblk_type):
1752 if (vnode.v_type == vchr_type):
1761 if (vnode.v_type == vblk_type):
1765 if (vnode.v_type == vchr_type):
1986 vtype = int(vnode.v_type)
2084 vtype = int(vnode.v_type)

12