aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/bio.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-02-02 11:59:54 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-02-02 11:59:54 +0000
commitffa918814d28e5f3e9becbe2e88fca7abeb6b4f7 (patch)
treebadbc40927245579fc98c19fe98bebd56b1a35f8 /sys/sys/bio.h
parentecc575bfaa38d7dd95c49701525c2e472da6e9c2 (diff)
downloadsrc-ffa918814d28e5f3e9becbe2e88fca7abeb6b4f7.tar.gz
src-ffa918814d28e5f3e9becbe2e88fca7abeb6b4f7.zip
Add a bio_disk pointer for use between geom_disk and the device drivers.
Notes
Notes: svn path=/head/; revision=110230
Diffstat (limited to 'sys/sys/bio.h')
-rw-r--r--sys/sys/bio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/bio.h b/sys/sys/bio.h
index d012c86881d7..5aaba85c1225 100644
--- a/sys/sys/bio.h
+++ b/sys/sys/bio.h
@@ -44,12 +44,14 @@
#include <sys/queue.h>
+struct disk;
/*
* The bio structure describes an I/O operation in the kernel.
*/
struct bio {
u_int bio_cmd; /* I/O operation. */
dev_t bio_dev; /* Device to do I/O on. */
+ struct disk *bio_disk; /* Valid below geom_disk.c only */
daddr_t bio_blkno; /* Underlying physical block number. */
off_t bio_offset; /* Offset into file. */
long bio_bcount; /* Valid bytes in buffer. */