Home
last modified time | relevance | path

Searched refs:bdevsw (Results 1 – 9 of 9) sorted by relevance

/xnu-12377.61.12/bsd/kern/
H A Dbsd_stubs.c88 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 Dkern_symfile.c101 return (*bdevsw[major(device)].d_ioctl) in file_ioctl()
/xnu-12377.61.12/bsd/sys/
H A Dconf.h158 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 Dconf.c28 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 Dconf.c51 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 Dspec_vnops.c276 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 Dmemdev.c133 static const struct bdevsw mdevbdevsw = {
/xnu-12377.61.12/bsd/vfs/
H A Dvfs_vnops.c1793 *(int *)data = bdevsw[major(vp->v_rdev)].d_type; in vn_ioctl()
H A Dvfs_syscalls.c1623 error = bdevsw[maj].d_open(dev, FREAD | FWRITE, S_IFBLK, p); in mount_common()