summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-03-11 08:20:22 +0000
committerphk <phk@FreeBSD.org>2002-03-11 08:20:22 +0000
commiteccfe65325c85f3a20466eae11c5ccf65b0a2835 (patch)
treea35831a2f119cde79fafce9ddbfe8180a63a970f /sys
parent9347f8152d1b381073b37667be74d961ce3b7bd9 (diff)
downloadFreeBSD-src-eccfe65325c85f3a20466eae11c5ccf65b0a2835.zip
FreeBSD-src-eccfe65325c85f3a20466eae11c5ccf65b0a2835.tar.gz
Augment struct bio for GEOM.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/bio.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/sys/sys/bio.h b/sys/sys/bio.h
index c1c515b..7f1328d 100644
--- a/sys/sys/bio.h
+++ b/sys/sys/bio.h
@@ -46,6 +46,8 @@
struct bio;
struct buf;
+struct g_consumer;
+struct g_provider;
struct iodone_chain {
long ic_prev_flags;
@@ -81,13 +83,21 @@ struct bio {
/* XXX: these go away when bio chaining is introduced */
daddr_t bio_pblkno; /* physical block number */
struct iodone_chain *bio_done_chain;
+ struct bio *bio_linkage;
+ off_t bio_length;
+ char *bio_attribute;
+ off_t bio_completed;
+ struct g_consumer *bio_from;
+ struct g_provider *bio_to;
};
/* bio_cmd */
-#define BIO_READ 1
-#define BIO_WRITE 2
-#define BIO_DELETE 4
-#define BIO_FORMAT 8
+#define BIO_READ 0x00000001
+#define BIO_WRITE 0x00000002
+#define BIO_DELETE 0x00000004
+#define BIO_FORMAT 0x00000008
+#define BIO_GETATTR 0x00000010
+#define BIO_SETATTR 0x00000020
#define BIO_CMD1 0x40000000 /* Available for local hacks */
#define BIO_CMD2 0x80000000 /* Available for local hacks */
OpenPOWER on IntegriCloud