* bufq functions are defined in bufq.h not buf.h.
* Add missing bufq_drain() function. Bump DATE.
This commit is contained in:
parent
64bef641c2
commit
16efb249a7
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: bufq.9,v 1.7 2005/07/09 15:25:17 xtraeme Exp $
|
||||
.\" $NetBSD: bufq.9,v 1.8 2005/10/10 15:28:42 xtraeme Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,23 +34,26 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd July 9, 2005
|
||||
.Dd October 10, 2005
|
||||
.Dt BUFQ 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm bufq ,
|
||||
.Nm bufq_state ,
|
||||
.Nm bufq_alloc ,
|
||||
.Nm bufq_drain ,
|
||||
.Nm bufq_free ,
|
||||
.Nm BUFQ_PUT ,
|
||||
.Nm BUFQ_GET ,
|
||||
.Nm BUFQ_PEEK
|
||||
.Nd device buffer queues
|
||||
.Sh SYNOPSIS
|
||||
.In buf.h
|
||||
.In sys/bufq.h
|
||||
.Ft void
|
||||
.Fn bufq_alloc "struct bufq_state *bufq" "int flags"
|
||||
.Ft void
|
||||
.Fn bufq_drain "struct bufq_state *bufq"
|
||||
.Ft void
|
||||
.Fn bufq_free "struct bufq_state *bufq"
|
||||
.Ft void
|
||||
.Fn BUFQ_PUT "struct bufq_state *bufq" "struct buf *bp"
|
||||
@ -66,7 +69,7 @@ subsystem is a set of operations for the management of device buffer queues.
|
||||
The primary data type for using the operations is the
|
||||
.Em bufq_state
|
||||
structure in
|
||||
.Pa buf.h :
|
||||
.Pa sys/bufq.h :
|
||||
.Bd -literal
|
||||
struct bufq_state {
|
||||
void (*bq_put)(struct bufq_state *, struct buf *);
|
||||
@ -108,6 +111,10 @@ descriptor.
|
||||
The argument
|
||||
.Fa flags
|
||||
controls the strategy and sort order.
|
||||
.It Fn bufq_drain "bufq"
|
||||
Drain a
|
||||
.Em bufq_state
|
||||
descriptor.
|
||||
.It Fn bufq_free "bufq"
|
||||
Destroy a
|
||||
.Em bufq_state
|
||||
|
Loading…
Reference in New Issue
Block a user