aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/bio.h
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2013-03-23 16:55:07 +0000
committerWill Andrews <will@FreeBSD.org>2013-03-23 16:55:07 +0000
commitef04b888d25cec4cb3edfcde3e7dc8ab8a1b76b8 (patch)
tree51f9703ca2c4262279434974dafdb5e22831aa91 /sys/sys/bio.h
parent58567a1b4ea2125c75587cfc1ac7c39e4007d302 (diff)
downloadsrc-ef04b888d25cec4cb3edfcde3e7dc8ab8a1b76b8.tar.gz
src-ef04b888d25cec4cb3edfcde3e7dc8ab8a1b76b8.zip
Be more explicit about what each bio_cmd & bio_flags value means.
Reviewed by: ken (mentor)
Notes
Notes: svn path=/head/; revision=248654
Diffstat (limited to 'sys/sys/bio.h')
-rw-r--r--sys/sys/bio.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/sys/sys/bio.h b/sys/sys/bio.h
index 7678f5aa4f13..535ce6136cc1 100644
--- a/sys/sys/bio.h
+++ b/sys/sys/bio.h
@@ -41,19 +41,23 @@
#include <sys/queue.h>
/* bio_cmd */
-#define BIO_READ 0x01
-#define BIO_WRITE 0x02
-#define BIO_DELETE 0x04
-#define BIO_GETATTR 0x08
-#define BIO_FLUSH 0x10
+#define BIO_READ 0x01 /* Read I/O data */
+#define BIO_WRITE 0x02 /* Write I/O data */
+#define BIO_DELETE 0x04 /* TRIM or free blocks, i.e. mark as unused */
+#define BIO_GETATTR 0x08 /* Get GEOM attributes of object */
+#define BIO_FLUSH 0x10 /* Commit outstanding I/O now */
#define BIO_CMD0 0x20 /* Available for local hacks */
#define BIO_CMD1 0x40 /* Available for local hacks */
#define BIO_CMD2 0x80 /* Available for local hacks */
/* bio_flags */
-#define BIO_ERROR 0x01
-#define BIO_DONE 0x02
-#define BIO_ONQUEUE 0x04
+#define BIO_ERROR 0x01 /* An error occurred processing this bio. */
+#define BIO_DONE 0x02 /* This bio is finished. */
+#define BIO_ONQUEUE 0x04 /* This bio is in a queue & not yet taken. */
+/*
+ * This bio must be executed after all previous bios in the queue have been
+ * executed, and before any successive bios can be executed.
+ */
#define BIO_ORDERED 0x08
#define BIO_UNMAPPED 0x10
#define BIO_TRANSIENT_MAPPING 0x20