Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Dec 2009 10:35:58 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200403 - head/sys/sys
Message-ID:  <200912111035.nBBAZwYA005805@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luigi
Date: Fri Dec 11 10:35:58 2009
New Revision: 200403
URL: http://svn.freebsd.org/changeset/base/200403

Log:
  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

Modified:
  head/sys/sys/bio.h

Modified: head/sys/sys/bio.h
==============================================================================
--- head/sys/sys/bio.h	Fri Dec 11 07:56:37 2009	(r200402)
+++ head/sys/sys/bio.h	Fri Dec 11 10:35:58 2009	(r200403)
@@ -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?200912111035.nBBAZwYA005805>