Deleted Added
full compact
buf.h (22975) buf.h (26664)
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$
39 * $Id: buf.h,v 1.38 1997/02/22 09:44:49 peter Exp $
40 */
41
42#ifndef _SYS_BUF_H_
43#define _SYS_BUF_H_
44
45#include <sys/queue.h>
46
47#define NOLIST ((struct buf *)0x87654321)

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

189
190#ifdef KERNEL
191extern int nbuf; /* The number of buffer headers */
192extern struct buf *buf; /* The buffer headers. */
193extern char *buffers; /* The buffer contents. */
194extern int bufpages; /* Number of memory pages in the buffer pool. */
195extern struct buf *swbuf; /* Swap I/O buffer headers. */
196extern int nswbuf; /* Number of swap I/O buffer headers. */
40 */
41
42#ifndef _SYS_BUF_H_
43#define _SYS_BUF_H_
44
45#include <sys/queue.h>
46
47#define NOLIST ((struct buf *)0x87654321)

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

189
190#ifdef KERNEL
191extern int nbuf; /* The number of buffer headers */
192extern struct buf *buf; /* The buffer headers. */
193extern char *buffers; /* The buffer contents. */
194extern int bufpages; /* Number of memory pages in the buffer pool. */
195extern struct buf *swbuf; /* Swap I/O buffer headers. */
196extern int nswbuf; /* Number of swap I/O buffer headers. */
197extern int needsbuffer, numdirtybuffers;
197extern TAILQ_HEAD(swqueue, buf) bswlist;
198
199void bufinit __P((void));
200void bremfree __P((struct buf *));
201int bread __P((struct vnode *, daddr_t, int,
202 struct ucred *, struct buf **));
203int breadn __P((struct vnode *, daddr_t, int, daddr_t *, int *, int,
204 struct ucred *, struct buf **));

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

239void pbgetvp __P((struct vnode *, struct buf *));
240void pbrelvp __P((struct buf *));
241void reassignbuf __P((struct buf *, struct vnode *));
242struct buf *trypbuf __P((void));
243void vm_bounce_alloc __P((struct buf *));
244void vm_bounce_free __P((struct buf *));
245vm_offset_t vm_bounce_kva_alloc __P((int));
246void vm_bounce_kva_alloc_free __P((vm_offset_t, int));
198extern TAILQ_HEAD(swqueue, buf) bswlist;
199
200void bufinit __P((void));
201void bremfree __P((struct buf *));
202int bread __P((struct vnode *, daddr_t, int,
203 struct ucred *, struct buf **));
204int breadn __P((struct vnode *, daddr_t, int, daddr_t *, int *, int,
205 struct ucred *, struct buf **));

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

240void pbgetvp __P((struct vnode *, struct buf *));
241void pbrelvp __P((struct buf *));
242void reassignbuf __P((struct buf *, struct vnode *));
243struct buf *trypbuf __P((void));
244void vm_bounce_alloc __P((struct buf *));
245void vm_bounce_free __P((struct buf *));
246vm_offset_t vm_bounce_kva_alloc __P((int));
247void vm_bounce_kva_alloc_free __P((vm_offset_t, int));
248void vfs_bio_need_satisfy __P((void));
247#endif /* KERNEL */
248
249#endif /* !_SYS_BUF_H_ */
249#endif /* KERNEL */
250
251#endif /* !_SYS_BUF_H_ */