Start development on Research V6
[unix-history] / .ref-Research-V4 / sys / buf.h
CommitLineData
e91bce62
KT
1struct buf {
2 int b_flags;
3 struct buf *b_forw;
4 struct buf *b_back;
5 struct buf *av_forw;
6 struct buf *av_back;
7 int b_dev;
8 int b_wcount;
9 char *b_addr;
10 char *b_blkno;
e91bce62
KT
11} buf[NBUF];
12
13/*
14 * forw and back are shared with "buf" struct.
15 */
16struct devtab {
17 char d_active;
18 char d_errcnt;
19 struct buf *b_forw;
20 struct buf *b_back;
21 struct buf *d_actf;
22 struct buf *d_actl;
00549369 23} devtab[NMAJ];
e91bce62
KT
24
25struct buf bfreelist;
26
e91bce62
KT
27#define B_READ 01
28#define B_DONE 02
29#define B_ERROR 04
30#define B_BUSY 010
31#define B_XMEM 060
32#define B_WANTED 0100
33#define B_RELOC 0200
34#define B_ASYNC 0400
35#define B_DELWRI 01000