Deleted Added
full compact
bio.h (46566) bio.h (46580)
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.66 1999/05/02 23:56:34 alc Exp $
39 * $Id: buf.h,v 1.67 1999/05/06 17:06:32 phk Exp $
40 */
41
42#ifndef _SYS_BUF_H_
43#define _SYS_BUF_H_
44
45#include <sys/queue.h>
46
47struct buf;

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

92 * b_resid. Number of bytes remaining in I/O. After an I/O operation
93 * completes, b_resid is usually 0 indicating 100% success.
94 */
95struct buf {
96 LIST_ENTRY(buf) b_hash; /* Hash chain. */
97 TAILQ_ENTRY(buf) b_vnbufs; /* Buffer's associated vnode. */
98 TAILQ_ENTRY(buf) b_freelist; /* Free list position if not active. */
99 TAILQ_ENTRY(buf) b_act; /* Device driver queue when active. *new* */
40 */
41
42#ifndef _SYS_BUF_H_
43#define _SYS_BUF_H_
44
45#include <sys/queue.h>
46
47struct buf;

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

92 * b_resid. Number of bytes remaining in I/O. After an I/O operation
93 * completes, b_resid is usually 0 indicating 100% success.
94 */
95struct buf {
96 LIST_ENTRY(buf) b_hash; /* Hash chain. */
97 TAILQ_ENTRY(buf) b_vnbufs; /* Buffer's associated vnode. */
98 TAILQ_ENTRY(buf) b_freelist; /* Free list position if not active. */
99 TAILQ_ENTRY(buf) b_act; /* Device driver queue when active. *new* */
100 struct proc *b_proc; /* Associated proc; NULL if kernel. */
101 long b_flags; /* B_* flags. */
102 unsigned short b_qindex; /* buffer queue index */
103 unsigned char b_usecount; /* buffer use count */
104 unsigned char b_xflags; /* extra flags */
105 int b_error; /* Errno value. */
106 long b_bufsize; /* Allocated buffer size. */
107 long b_bcount; /* Valid bytes in buffer. */
108 long b_resid; /* Remaining I/O. */

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

121 int b_dirtyoff; /* Offset in buffer of dirty region. */
122 int b_dirtyend; /* Offset of end of dirty region. */
123 struct ucred *b_rcred; /* Read credentials reference. */
124 struct ucred *b_wcred; /* Write credentials reference. */
125 daddr_t b_pblkno; /* physical block number */
126 void *b_saveaddr; /* Original b_addr for physio. */
127 void *b_driver1; /* for private use by the driver */
128 void *b_driver2; /* for private use by the driver */
100 long b_flags; /* B_* flags. */
101 unsigned short b_qindex; /* buffer queue index */
102 unsigned char b_usecount; /* buffer use count */
103 unsigned char b_xflags; /* extra flags */
104 int b_error; /* Errno value. */
105 long b_bufsize; /* Allocated buffer size. */
106 long b_bcount; /* Valid bytes in buffer. */
107 long b_resid; /* Remaining I/O. */

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

120 int b_dirtyoff; /* Offset in buffer of dirty region. */
121 int b_dirtyend; /* Offset of end of dirty region. */
122 struct ucred *b_rcred; /* Read credentials reference. */
123 struct ucred *b_wcred; /* Write credentials reference. */
124 daddr_t b_pblkno; /* physical block number */
125 void *b_saveaddr; /* Original b_addr for physio. */
126 void *b_driver1; /* for private use by the driver */
127 void *b_driver2; /* for private use by the driver */
128 void *b_caller1; /* for private use by the driver */
129 void *b_caller2; /* for private use by the driver */
129 union pager_info {
130 void *pg_spc;
131 int pg_reqpage;
132 } b_pager;
133 union cluster_info {
134 TAILQ_HEAD(cluster_list_head, buf) cluster_head;
135 TAILQ_ENTRY(buf) cluster_entry;
136 } b_cluster;

--- 267 unchanged lines hidden ---
130 union pager_info {
131 void *pg_spc;
132 int pg_reqpage;
133 } b_pager;
134 union cluster_info {
135 TAILQ_HEAD(cluster_list_head, buf) cluster_head;
136 TAILQ_ENTRY(buf) cluster_entry;
137 } b_cluster;

--- 267 unchanged lines hidden ---