Deleted Added
full compact
buf.h (52066) buf.h (52452)
1/*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)buf.h 8.9 (Berkeley) 3/30/95
1/*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 22 unchanged lines hidden (view full) ---

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)buf.h 8.9 (Berkeley) 3/30/95
39 * $FreeBSD: head/sys/sys/buf.h 52066 1999-10-09 19:44:32Z phk $
39 * $FreeBSD: head/sys/sys/buf.h 52452 1999-10-24 03:27:28Z dillon $
40 */
41
42#ifndef _SYS_BUF_H_
43#define _SYS_BUF_H_
44
45#include <sys/queue.h>
46#include <sys/lock.h>
47

--- 386 unchanged lines hidden (view full) ---

434}
435
436/* Flags to low-level allocation routines. */
437#define B_CLRBUF 0x01 /* Request allocated buffer be cleared. */
438#define B_SYNC 0x02 /* Do all allocations synchronously. */
439
440#ifdef KERNEL
441extern int nbuf; /* The number of buffer headers */
40 */
41
42#ifndef _SYS_BUF_H_
43#define _SYS_BUF_H_
44
45#include <sys/queue.h>
46#include <sys/lock.h>
47

--- 386 unchanged lines hidden (view full) ---

434}
435
436/* Flags to low-level allocation routines. */
437#define B_CLRBUF 0x01 /* Request allocated buffer be cleared. */
438#define B_SYNC 0x02 /* Do all allocations synchronously. */
439
440#ifdef KERNEL
441extern int nbuf; /* The number of buffer headers */
442extern int buf_maxio; /* nominal maximum I/O for buffer */
442extern struct buf *buf; /* The buffer headers. */
443extern char *buffers; /* The buffer contents. */
444extern int bufpages; /* Number of memory pages in the buffer pool. */
445extern struct buf *swbuf; /* Swap I/O buffer headers. */
446extern int nswbuf; /* Number of swap I/O buffer headers. */
447extern TAILQ_HEAD(swqueue, buf) bswlist;
448extern TAILQ_HEAD(bqueues, buf) bufqueues[BUFFER_QUEUES];
449

--- 56 unchanged lines hidden ---
443extern struct buf *buf; /* The buffer headers. */
444extern char *buffers; /* The buffer contents. */
445extern int bufpages; /* Number of memory pages in the buffer pool. */
446extern struct buf *swbuf; /* Swap I/O buffer headers. */
447extern int nswbuf; /* Number of swap I/O buffer headers. */
448extern TAILQ_HEAD(swqueue, buf) bswlist;
449extern TAILQ_HEAD(bqueues, buf) bufqueues[BUFFER_QUEUES];
450

--- 56 unchanged lines hidden ---