Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Dec 2009 07:32:09 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r200565 - stable/8/sys/sys
Message-ID:  <200912150732.nBF7W984054073@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luigi
Date: Tue Dec 15 07:32:08 2009
New Revision: 200565
URL: http://svn.freebsd.org/changeset/base/200565

Log:
  MFC: expose only bio_cmd and bio_flags values to userland

Modified:
  stable/8/sys/sys/bio.h

Modified: stable/8/sys/sys/bio.h
==============================================================================
--- stable/8/sys/sys/bio.h	Tue Dec 15 07:04:20 2009	(r200564)
+++ stable/8/sys/sys/bio.h	Tue Dec 15 07:32:08 2009	(r200565)
@@ -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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912150732.nBF7W984054073>