Searched refs:bdevsw (Results 1 – 9 of 9) sorted by relevance
| /xnu-12377.61.12/bsd/kern/ |
| H A D | bsd_stubs.c | 88 const struct bdevsw nobdev = NO_BDEVICE; 102 struct bdevsw * devsw; in bdevsw_isfree() 110 devsw = &bdevsw[index]; in bdevsw_isfree() 112 if (memcmp((const char *)devsw, (const char *)&nobdev, sizeof(struct bdevsw)) == 0) { in bdevsw_isfree() 122 devsw = &bdevsw[index]; in bdevsw_isfree() 123 if ((memcmp((const char *)devsw, (const char *)&nobdev, sizeof(struct bdevsw)) != 0)) { in bdevsw_isfree() 139 bdevsw_add(int index, const struct bdevsw * bsw) in bdevsw_add() 146 bdevsw[index] = *bsw; in bdevsw_add() 156 bdevsw_remove(int index, const struct bdevsw * bsw) in bdevsw_remove() 158 struct bdevsw * devsw; in bdevsw_remove() [all …]
|
| H A D | kern_symfile.c | 101 return (*bdevsw[major(device)].d_ioctl) in file_ioctl()
|
| /xnu-12377.61.12/bsd/sys/ |
| H A D | conf.h | 158 struct bdevsw { struct 173 extern struct bdevsw bdevsw[]; argument 306 int bdevsw_add(int, const struct bdevsw *); 307 int bdevsw_remove(int, const struct bdevsw *);
|
| /xnu-12377.61.12/bsd/dev/arm64/ |
| H A D | conf.c | 28 struct bdevsw bdevsw[] = variable 70 const int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]); 243 if (bdevsw[maj].d_type == D_DISK) { in isdisk()
|
| /xnu-12377.61.12/bsd/dev/i386/ |
| H A D | conf.c | 51 struct bdevsw bdevsw[] = variable 94 const int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]); 266 if (bdevsw[maj].d_type == D_DISK) { in isdisk()
|
| /xnu-12377.61.12/bsd/miscfs/specfs/ |
| H A D | spec_vnops.c | 276 if ((major(dev) < nblkdev) && (size = bdevsw[major(dev)].d_psize)) { in set_blocksize() 451 (ap->a_mode & FWRITE) && bdevsw[maj].d_type == D_DISK) { in spec_open() 463 error = (*bdevsw[maj].d_open)(dev, ap->a_mode, S_IFBLK, p); in spec_open() 475 if (bdevsw[maj].d_type == D_DISK && !vp->v_un.vu_specinfo->si_initted) { in spec_open() 902 retval = (*bdevsw[major(dev)].d_ioctl)(dev, ap->a_command, ap->a_data, ap->a_fflag, p); in spec_ioctl() 2809 strategy_ret = (*(strategy_fcn_ret_t*)bdevsw[major(bdev)].d_strategy)(bp); in spec_strategy() 2943 error = bdevsw[major(dev)].d_close(dev, flags, S_IFBLK, p); in spec_close_internal()
|
| /xnu-12377.61.12/bsd/dev/ |
| H A D | memdev.c | 133 static const struct bdevsw mdevbdevsw = {
|
| /xnu-12377.61.12/bsd/vfs/ |
| H A D | vfs_vnops.c | 1793 *(int *)data = bdevsw[major(vp->v_rdev)].d_type; in vn_ioctl()
|
| H A D | vfs_syscalls.c | 1623 error = bdevsw[maj].d_open(dev, FREAD | FWRITE, S_IFBLK, p); in mount_common()
|