buf.h (48333) | buf.h (48544) |
---|---|
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 * $Id: buf.h,v 1.73 1999/06/27 11:40:03 peter Exp $ | 39 * $Id: buf.h,v 1.74 1999/06/29 05:59:47 peter Exp $ |
40 */ 41 42#ifndef _SYS_BUF_H_ 43#define _SYS_BUF_H_ 44 45#include <sys/queue.h> 46#include <sys/lock.h> 47 --- 376 unchanged lines hidden (view full) --- 424 425/* 426 * Definitions for the buffer free lists. 427 */ 428#define BUFFER_QUEUES 6 /* number of free buffer queues */ 429 430#define QUEUE_NONE 0 /* on no queue */ 431#define QUEUE_LOCKED 1 /* locked buffers */ | 40 */ 41 42#ifndef _SYS_BUF_H_ 43#define _SYS_BUF_H_ 44 45#include <sys/queue.h> 46#include <sys/lock.h> 47 --- 376 unchanged lines hidden (view full) --- 424 425/* 426 * Definitions for the buffer free lists. 427 */ 428#define BUFFER_QUEUES 6 /* number of free buffer queues */ 429 430#define QUEUE_NONE 0 /* on no queue */ 431#define QUEUE_LOCKED 1 /* locked buffers */ |
432#define QUEUE_LRU 2 /* useful buffers */ 433#define QUEUE_VMIO 3 /* VMIO buffers */ 434#define QUEUE_AGE 4 /* not-useful buffers */ 435#define QUEUE_EMPTY 5 /* empty buffer headers*/ | 432#define QUEUE_CLEAN 2 /* non-B_DELWRI buffers */ 433#define QUEUE_DIRTY 3 /* B_DELWRI buffers */ 434#define QUEUE_EMPTYKVA 4 /* empty buffer headers w/KVA assignment */ 435#define QUEUE_EMPTY 5 /* empty buffer headers */ |
436 437/* 438 * Zero out the buffer's data area. 439 */ 440#define clrbuf(bp) { \ 441 bzero((bp)->b_data, (u_int)(bp)->b_bcount); \ 442 (bp)->b_resid = 0; \ 443} --- 71 unchanged lines hidden --- | 436 437/* 438 * Zero out the buffer's data area. 439 */ 440#define clrbuf(bp) { \ 441 bzero((bp)->b_data, (u_int)(bp)->b_bcount); \ 442 (bp)->b_resid = 0; \ 443} --- 71 unchanged lines hidden --- |