summaryrefslogtreecommitdiffstats
path: root/sys/sys/disk.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-09-12 09:16:00 +0000
committerphk <phk@FreeBSD.org>1999-09-12 09:16:00 +0000
commit22b8607abfa43d0f87ae3489f7696568350b1f97 (patch)
tree8dbe87930f0c24101bf78008f941dbbf08564bd6 /sys/sys/disk.h
parent6ccbd3a7209f2032efc661deda8d8172ff345d05 (diff)
downloadFreeBSD-src-22b8607abfa43d0f87ae3489f7696568350b1f97.zip
FreeBSD-src-22b8607abfa43d0f87ae3489f7696568350b1f97.tar.gz
Use a different tactic when creating the devsw so that disk_create()
doesn't need to malloc.
Diffstat (limited to 'sys/sys/disk.h')
-rw-r--r--sys/sys/disk.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/disk.h b/sys/sys/disk.h
index 99037fd..e96a3ad 100644
--- a/sys/sys/disk.h
+++ b/sys/sys/disk.h
@@ -23,7 +23,11 @@
struct disk {
int d_flags;
- struct cdevsw *d_devsw;
+ d_open_t *d_open;
+ d_close_t *d_close;
+ d_ioctl_t *d_ioctl;
+ d_strategy_t *d_strategy;
+ d_psize_t *d_psize;
dev_t d_dev;
struct diskslices *d_slice;
struct disklabel d_label;
OpenPOWER on IntegriCloud