summaryrefslogtreecommitdiffstats
path: root/sys/sys/disk.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-02-28 10:02:02 +0000
committerphk <phk@FreeBSD.org>2003-02-28 10:02:02 +0000
commite8ab4a65e42d869f323e86678a95fc38adf59e1b (patch)
tree4f661b58c386c5142655eb0e3b72fa94186f6fac /sys/sys/disk.h
parent7324f4d690940475f292944481cf80dac64f725b (diff)
downloadFreeBSD-src-e8ab4a65e42d869f323e86678a95fc38adf59e1b.zip
FreeBSD-src-e8ab4a65e42d869f323e86678a95fc38adf59e1b.tar.gz
NO_GEOM cleanup:
Retire the "dev_t" centric version of the disk mini-layer. Remove now unneeded linkage field in dev_t and struct disk.
Diffstat (limited to 'sys/sys/disk.h')
-rw-r--r--sys/sys/disk.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/sys/disk.h b/sys/sys/disk.h
index fc098f5..7031e15 100644
--- a/sys/sys/disk.h
+++ b/sys/sys/disk.h
@@ -34,17 +34,12 @@ struct g_geom;
struct disk {
/* Fields which are private to geom_disk */
- struct cdevsw *d_devsw;
- d_open_t *d_copen; /* Compat */
- d_close_t *d_cclose; /* Compat */
- d_ioctl_t *d_cioctl; /* Compat */
struct g_geom *d_geom;
/* Shared fields */
u_int d_flags;
const char *d_name;
u_int d_unit;
- dev_t d_dev; /* Compat */
/* Disk methods */
disk_open_t *d_open;
@@ -70,7 +65,7 @@ struct disk {
#define DISKFLAG_OPEN 0x2
#define DISKFLAG_CANDELETE 0x4
-dev_t disk_create(int unit, struct disk *disk, int flags, struct cdevsw *cdevsw, void *unused);
+void disk_create(int unit, struct disk *disk, int flags, void *unused, void *unused2);
void disk_destroy(struct disk *disk);
struct disk *disk_enumerate(struct disk *disk);
void disk_err(struct bio *bp, const char *what, int blkdone, int nl);
OpenPOWER on IntegriCloud