aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/buf.h
diff options
context:
space:
mode:
authorJohn Dyson <dyson@FreeBSD.org>1995-11-19 22:22:35 +0000
committerJohn Dyson <dyson@FreeBSD.org>1995-11-19 22:22:35 +0000
commit68a2196fadbbcfdd09ac98d9069d615b40f9f7a5 (patch)
tree061a7602ced3c5c9d0ea539fff341a22dceeaeb7 /sys/sys/buf.h
parentfb9ca17e1e41e972937b7670988d08ec19b514a0 (diff)
downloadsrc-68a2196fadbbcfdd09ac98d9069d615b40f9f7a5.tar.gz
src-68a2196fadbbcfdd09ac98d9069d615b40f9f7a5.zip
First set of changes to eliminate the ad-hoc device buffer queues,
replacing them with TAILQ's as appropriate. The SCSI code is the first to be changed -- until the changes are complete, both b_act and b_actf will be in the buf structure. b_actf will eventually be removed.
Notes
Notes: svn path=/head/; revision=12408
Diffstat (limited to 'sys/sys/buf.h')
-rw-r--r--sys/sys/buf.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/sys/buf.h b/sys/sys/buf.h
index 9ba55c518d9d..ff39bfe1dcc1 100644
--- a/sys/sys/buf.h
+++ b/sys/sys/buf.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)buf.h 8.7 (Berkeley) 1/21/94
- * $Id: buf.h,v 1.21 1995/08/24 12:57:17 davidg Exp $
+ * $Id: buf.h,v 1.22 1995/11/19 19:54:31 dyson Exp $
*/
#ifndef _SYS_BUF_H_
@@ -57,6 +57,8 @@ struct iodone_chain {
} ic_args[5];
};
+typedef TAILQ_HEAD(buf_queue_head, buf) buf_queue_head, *buf_queue_head_t;
+
/*
* The buffer header describes an I/O operation in the kernel.
*/
@@ -64,7 +66,8 @@ struct buf {
LIST_ENTRY(buf) b_hash; /* Hash chain. */
LIST_ENTRY(buf) b_vnbufs; /* Buffer's associated vnode. */
TAILQ_ENTRY(buf) b_freelist; /* Free list position if not active. */
- struct buf *b_actf, **b_actb; /* Device driver queue when active. */
+ struct buf *b_actf, **b_actb; /* Device driver queue when active. *depricated* XXX */
+ TAILQ_ENTRY(buf) b_act; /* Device driver queue when active. *new* */
struct proc *b_proc; /* Associated proc; NULL if kernel. */
volatile long b_flags; /* B_* flags. */
int b_qindex; /* buffer queue index */