Searched refs:bdevsw (Results 1 - 10 of 10) sorted by relevance

/darwin-on-arm/xnu/bsd/kern/
H A Dbsd_stubs.c116 struct bdevsw nobdev = NO_BDEVICE;
130 struct bdevsw *devsw;
137 devsw = &bdevsw[index];
141 sizeof(struct bdevsw)) == 0)
145 devsw = &bdevsw[index];
149 sizeof(struct bdevsw)) != 0)) {
165 bdevsw_add(int index, struct bdevsw * bsw)
171 bdevsw[index] = *bsw;
179 bdevsw_remove(int index, struct bdevsw * bsw)
181 struct bdevsw *devs
[all...]
H A Dkern_symfile.c90 return ((*bdevsw[major(device)].d_ioctl)
/darwin-on-arm/xnu/bsd/dev/arm/
H A Dconf.c52 struct bdevsw bdevsw[] = { variable in typeref:struct:bdevsw
100 int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
313 if ((D_TYPEMASK & bdevsw[maj].d_type) == D_DISK) {
/darwin-on-arm/xnu/bsd/dev/i386/
H A Dconf.c52 struct bdevsw bdevsw[] = variable in typeref:struct:bdevsw
95 int nblkdev = sizeof (bdevsw) / sizeof (bdevsw[0]);
311 if ((D_TYPEMASK & bdevsw[maj].d_type) == D_DISK) {
/darwin-on-arm/xnu/bsd/sys/
H A Dconf.h159 struct bdevsw { struct
174 extern struct bdevsw bdevsw[];
179 * Contents of empty bdevsw slot.
313 int bdevsw_add(int, struct bdevsw *);
314 int bdevsw_remove(int, struct bdevsw *);
/darwin-on-arm/xnu/bsd/miscfs/specfs/
H A Dspec_vnops.c212 if ((major(dev) < nblkdev) && (size = bdevsw[major(dev)].d_psize)) {
348 error = (*bdevsw[maj].d_open)(dev, ap->a_mode, S_IFBLK, p);
650 retval = (*bdevsw[major(dev)].d_ioctl)(dev, ap->a_command, ap->a_data, ap->a_fflag, p);
1729 strategy_ret = (*(strategy_fcn_ret_t*)bdevsw[major(bdev)].d_strategy)(bp);
1856 error = bdevsw[major(dev)].d_close(dev, flags, S_IFBLK, p);
/darwin-on-arm/xnu/bsd/dev/
H A Dmemdev.c131 static struct bdevsw mdevbdevsw = {
/darwin-on-arm/xnu/bsd/dev/vn/
H A Dvn.c144 static struct bdevsw vn_bdevsw = {
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_vnops.c1331 *(int *)data = D_TYPEMASK & bdevsw[major(vp->v_rdev)].d_type;
H A Dvfs_syscalls.c763 error = bdevsw[maj].d_open(dev, FREAD | FWRITE, S_IFBLK, p);

Completed in 103 milliseconds