/illumos-gate/usr/src/uts/common/os/ |
H A D | driver.c | 287 cb = devopsp[getmajor(*devp)]->devo_cb_ops; in dev_open() 296 cb = (devopsp[getmajor(dev)])->devo_cb_ops; in dev_close() 408 major_t major = getmajor(dev); in dev_to_instance() 442 ops = devopsp[getmajor(bp->b_edev)]; in bdev_strategy() 464 cb = devopsp[getmajor(dev)]->devo_cb_ops; in bdev_print() 523 cb = devopsp[getmajor(dev)]->devo_cb_ops; in bdev_dump() 532 cb = devopsp[getmajor(dev)]->devo_cb_ops; in cdev_read() 541 cb = devopsp[getmajor(dev)]->devo_cb_ops; in cdev_write() 551 cb = devopsp[getmajor(dev)]->devo_cb_ops; in cdev_ioctl() 561 cb = devopsp[getmajor(dev)]->devo_cb_ops; in cdev_devmap() [all …]
|
H A D | driver_lyr.c | 194 return (modid + getminor(dev) + getmajor(dev)); in ident_hash_func() 379 mod_major_to_name(getmajor(vp->v_rdev)), in handle_alloc() 416 mod_major_to_name(getmajor(vp->v_rdev)), in handle_alloc() 437 mod_major_to_name(getmajor(lhp->lh_vp->v_rdev)), in handle_release() 760 if (devopsp[getmajor(vp->v_rdev)]->devo_cb_ops == NULL) in ldi_open_by_vp() 1025 ldi_usage->tgt_name = mod_major_to_name(getmajor(dev)); in ldi_usage_walker_tgt_helper() 1130 major = getmajor(dev); in ldi_usage_walker_helper() 1315 major = getmajor(stp->sd_vnode->v_rdev); in ldi_mlink_fp() 1417 major = getmajor(stp->sd_vnode->v_rdev); in ldi_munlink_fp() 1511 name = mod_major_to_name(getmajor(dev)); in ldi_ident_from_stream() [all …]
|
/illumos-gate/usr/src/cmd/getmajor/ |
H A D | Makefile | 25 SHFILES= getmajor 31 USRSBINF= getmajor
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | ddi.h | 106 #undef getmajor 115 extern major_t getmajor(dev_t);
|
/illumos-gate/usr/src/cmd/mdb/common/modules/specfs/ |
H A D | specfs.c | 143 int major = getmajor(snode->s_dev); in snode_cb() 181 sd.sd_major = getmajor(dev); in snode() 239 sd.sd_major = getmajor(addr); in dev2snode()
|
/illumos-gate/usr/src/uts/common/fs/pcfs/ |
H A D | pc_vfsops.c | 435 if (getmajor(*xdev) >= devcnt) { in pcfs_device_identify() 505 *pseudodev = makedevice(getmajor(xdev), in pcfs_device_ismounted() 1164 getmajor(fsp->pcfs_devvp->v_rdev), in pc_badfs() 1602 getmajor(dev), getminor(dev), ldrive); in findTheDrive() 1712 getmajor(dev), getminor(dev), ldrive, in findTheDrive() 1841 getmajor(fsp->pcfs_xdev), getminor(fsp->pcfs_xdev), in findTheDrive() 1982 getmajor(fsp->pcfs_xdev), in parseBPB() 2022 getmajor(fsp->pcfs_xdev), getminor(fsp->pcfs_xdev), in parseBPB() 2032 getmajor(fsp->pcfs_xdev), getminor(fsp->pcfs_xdev), in parseBPB() 2389 getmajor(fsp->pcfs_xdev), getminor(fsp->pcfs_xdev), in pcfs_device_getinfo() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | clone.c | 286 if (getmajor(newdev) != emaj) in clnopen() 299 ddi_major_to_name(emaj), getmajor(newdev)); in clnopen()
|
H A D | drcompat.c | 200 dsp->dr_major = getmajor(*devp); in dropen()
|
H A D | gentty.c | 56 #define IS_STREAM(dev) (devopsp[getmajor(dev)]->devo_cb_ops->cb_str != NULL)
|
H A D | sad_conf.c | 272 apc.apc_major = getmajor(dev); in sad_ap_find_by_dev()
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | io.d.in | 88 dev_major = B->b_dip != NULL ? getmajor(B->b_edev) : 89 getmajor(B->b_file->v_vfsp->vfs_dev); 96 stringof(`devnamesp[getmajor(B->b_edev)].dn_name); 98 stringof(`devnamesp[getmajor(B->b_edev)].dn_name),
|
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/ |
H A D | fake_ddi.c | 53 getmajor(dev_t dev) in getmajor() function
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/devices/ |
H A D | devices_common.kshlib | 107 log_must mknod $filename c $(getmajor mm) 2
|
/illumos-gate/usr/src/uts/common/io/softmac/ |
H A D | softmac_main.c | 340 (getmajor(dev) == ddi_name_to_major("clone")) || in softmac_create() 422 index = (getmajor(dev) == ddi_name_to_major("clone")); in softmac_create() 958 (getmajor(dev) == ddi_name_to_major("clone")) || in softmac_destroy() 1064 index = (getmajor(dev) == ddi_name_to_major("clone")); in softmac_destroy() 1526 major = getmajor(dev); in softmac_hold_device() 1629 if ((drv = ddi_major_to_name(getmajor(dev))) == NULL) in softmac_hold()
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_init.c | 270 clone = makedevice(getmajor(*devp), mi); in smb_drv_open_ctl() 297 *devp = makedevice(getmajor(*devp), mi); in smb_drv_open_lib()
|
/illumos-gate/usr/src/uts/common/fs/specfs/ |
H A D | specvnops.c | 334 maj = getmajor(dev); in spec_size() 454 major_t maj = getmajor(dev); in spec_clone() 455 major_t newmaj = getmajor(newdev); in spec_clone() 638 maj = getmajor(dev); in spec_open() 712 int nmaj = getmajor(newdev); in spec_open() 929 if (getmajor(dev) != mm_major) in spec_close() 962 ddi_rele_driver(getmajor(dev)); in spec_close() 2231 } else if (devopsp[getmajor(dev)]->devo_cb_ops->cb_chpoll) { in spec_poll() 2262 if ((mapfunc = devopsp[getmajor(dev)]->devo_cb_ops->cb_mmap) == nodev) in spec_segmap() 2320 major_t maj = getmajor(dev); in spec_char_map()
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/aggs/ |
H A D | tst.subr.d | 76 INTFUNC(getmajor(0))
|
/illumos-gate/usr/src/uts/i86pc/io/gfx_private/ |
H A D | gfxp_segmap.c | 68 if ((mapfunc = devopsp[getmajor(dev)]->devo_cb_ops->cb_mmap) == nodev) in gfxp_ddi_segmap_setup()
|
/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | snode.h | 219 #define STABLEHASH(dev) ((getmajor(dev) + getminor(dev)) & (STABLESIZE - 1))
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_dev.c | 601 getmajor(dev) != nsmb_major) { in smb_usr_dup_dev() 659 getmajor(dev) != nsmb_major) { in smb_dev2share()
|
H A D | nsmb_ext.mapfile | 79 getmajor { FLAGS = EXTERN };
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | svc_gen.c | 234 getmajor(fp->f_vnode->v_rdev) == udpmaj) in svc_tli_kcreate()
|
/illumos-gate/usr/src/uts/common/fs/ |
H A D | lookup.c | 775 getmajor(v1->v_rdev) == getmajor(v2->v_rdev)) in vnode_match() 779 getmajor(v1->v_rdev) == getminor(v2->v_rdev)) in vnode_match() 783 getmajor(v2->v_rdev) == getminor(v1->v_rdev)) in vnode_match()
|
/illumos-gate/usr/src/test/zfs-tests/include/ |
H A D | commands.cfg | 141 getmajor
|
/illumos-gate/usr/src/uts/intel/io/vmm/ |
H A D | vmm_drv_test.c | 65 *devp = makedevice(getmajor(*devp), minor); in vdt_open()
|