summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2009-12-11 10:35:58 +0000
committerluigi <luigi@FreeBSD.org>2009-12-11 10:35:58 +0000
commit283e12cf4eb77bb1d3344ecd256d80cd3b882534 (patch)
tree35fa03328eaa8aa1b4227d2e0d378f7db8a47eed
parentc5bdafde93e935fa27a3919a5d935c893d58c173 (diff)
downloadFreeBSD-src-283e12cf4eb77bb1d3344ecd256d80cd3b882534.zip
FreeBSD-src-283e12cf4eb77bb1d3344ecd256d80cd3b882534.tar.gz
only export bio_cmd and flags to userland (bio_cmd are
used by ggatectl, flags are potentially useful). Other parts are internal kernel data structures and should not be visible to userland. No API change involved. MFC after: 3 days
-rw-r--r--sys/sys/bio.h33
1 files changed, 16 insertions, 17 deletions
diff --git a/sys/sys/bio.h b/sys/sys/bio.h
index 5af902b..8b6ff0e 100644
--- a/sys/sys/bio.h
+++ b/sys/sys/bio.h
@@ -40,6 +40,22 @@
#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_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
+
+#ifdef _KERNEL
struct disk;
struct bio;
@@ -95,23 +111,6 @@ struct bio {
daddr_t bio_pblkno; /* physical block number */
};
-/* bio_cmd */
-#define BIO_READ 0x01
-#define BIO_WRITE 0x02
-#define BIO_DELETE 0x04
-#define BIO_GETATTR 0x08
-#define BIO_FLUSH 0x10
-#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
-
-#ifdef _KERNEL
-
struct uio;
struct devstat;
OpenPOWER on IntegriCloud