Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Move forward decls earlier in the file. Expose bufq...



details:   https://anonhg.NetBSD.org/src/rev/7071802be783
branches:  trunk
changeset: 537848:7071802be783
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Oct 06 17:05:56 2002 +0000

description:
Move forward decls earlier in the file.  Expose bufq_state for the
benefit of kmem grovelers.

diffstat:

 sys/sys/buf.h |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (48 lines):

diff -r f00363f52716 -r 7071802be783 sys/sys/buf.h
--- a/sys/sys/buf.h     Sun Oct 06 17:01:27 2002 +0000
+++ b/sys/sys/buf.h     Sun Oct 06 17:05:56 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: buf.h,v 1.54 2002/08/30 19:21:14 hannken Exp $ */
+/*     $NetBSD: buf.h,v 1.55 2002/10/06 17:05:56 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -83,6 +83,10 @@
 #include <sys/pool.h>
 #include <sys/queue.h>
 
+struct buf;
+struct mount;
+struct vnode;
+
 #define NOLIST ((struct buf *)0x87654321)
 
 /*
@@ -90,8 +94,6 @@
  */   
 LIST_HEAD(workhead, worklist);
 
-#ifdef _KERNEL
-
 /*
  * Device driver buffer queue.
  */
@@ -115,6 +117,8 @@
 #define BUFQ_SORT_MASK         0x000f
 #define BUFQ_METHOD_MASK       0x00f0
 
+#ifdef _KERNEL
+
 void   bufq_alloc(struct bufq_state *, int);
 void   bufq_free(struct bufq_state *);
 
@@ -133,9 +137,6 @@
  * to use these hooks, a pointer to a set of bio_ops could be added
  * to each buffer.
  */
-struct buf;
-struct mount;
-struct vnode;
 struct bio_ops {
        void    (*io_start) __P((struct buf *));
        void    (*io_complete) __P((struct buf *));



Home | Main Index | Thread Index | Old Index