Deleted Added
full compact
buf.h (189595) buf.h (189878)
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.

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

27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * @(#)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.

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

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

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

438 (bp)->b_resid = 0; \
439}
440
441/*
442 * Flags for getblk's last parameter.
443 */
444#define GB_LOCK_NOWAIT 0x0001 /* Fail if we block on a buf lock. */
445#define GB_NOCREAT 0x0002 /* Don't create a buf if not found. */
36 */
37
38#ifndef _SYS_BUF_H_
39#define _SYS_BUF_H_
40
41#include <sys/bufobj.h>
42#include <sys/queue.h>
43#include <sys/lock.h>

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

438 (bp)->b_resid = 0; \
439}
440
441/*
442 * Flags for getblk's last parameter.
443 */
444#define GB_LOCK_NOWAIT 0x0001 /* Fail if we block on a buf lock. */
445#define GB_NOCREAT 0x0002 /* Don't create a buf if not found. */
446#define GB_NOWAIT_BD 0x0004 /* Do not wait for bufdaemon */
446
447#ifdef _KERNEL
448extern int nbuf; /* The number of buffer headers */
449extern long maxswzone; /* Max KVA for swap structures */
450extern long maxbcache; /* Max KVA for buffer cache */
451extern long runningbufspace;
452extern long hibufspace;
453extern int dirtybufthresh;

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

482void bufstrategy(struct bufobj *, struct buf *);
483void brelse(struct buf *);
484void bqrelse(struct buf *);
485int vfs_bio_awrite(struct buf *);
486struct buf * getpbuf(int *);
487struct buf *incore(struct bufobj *, daddr_t);
488struct buf *gbincore(struct bufobj *, daddr_t);
489struct buf *getblk(struct vnode *, daddr_t, int, int, int, int);
447
448#ifdef _KERNEL
449extern int nbuf; /* The number of buffer headers */
450extern long maxswzone; /* Max KVA for swap structures */
451extern long maxbcache; /* Max KVA for buffer cache */
452extern long runningbufspace;
453extern long hibufspace;
454extern int dirtybufthresh;

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

483void bufstrategy(struct bufobj *, struct buf *);
484void brelse(struct buf *);
485void bqrelse(struct buf *);
486int vfs_bio_awrite(struct buf *);
487struct buf * getpbuf(int *);
488struct buf *incore(struct bufobj *, daddr_t);
489struct buf *gbincore(struct bufobj *, daddr_t);
490struct buf *getblk(struct vnode *, daddr_t, int, int, int, int);
490struct buf *geteblk(int);
491struct buf *geteblk(int, int);
491int bufwait(struct buf *);
492int bufwrite(struct buf *);
493void bufdone(struct buf *);
494void bufdone_finish(struct buf *);
495
496int cluster_read(struct vnode *, u_quad_t, daddr_t, long,
497 struct ucred *, long, int, struct buf **);
498int cluster_wbuild(struct vnode *, long, daddr_t, int);

--- 26 unchanged lines hidden ---
492int bufwait(struct buf *);
493int bufwrite(struct buf *);
494void bufdone(struct buf *);
495void bufdone_finish(struct buf *);
496
497int cluster_read(struct vnode *, u_quad_t, daddr_t, long,
498 struct ucred *, long, int, struct buf **);
499int cluster_wbuild(struct vnode *, long, daddr_t, int);

--- 26 unchanged lines hidden ---