Commit | Line | Data |
---|---|---|
e91bce62 KT |
1 | struct 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; | |
11 | char b_error; | |
12 | char *b_resid; | |
13 | } buf[NBUF]; | |
14 | ||
15 | /* | |
16 | * forw and back are shared with "buf" struct. | |
17 | */ | |
18 | struct devtab { | |
19 | char d_active; | |
20 | char d_errcnt; | |
21 | struct buf *b_forw; | |
22 | struct buf *b_back; | |
23 | struct buf *d_actf; | |
24 | struct buf *d_actl; | |
25 | }; | |
26 | ||
27 | struct buf bfreelist; | |
28 | ||
29 | #define B_WRITE 0 | |
30 | #define B_READ 01 | |
31 | #define B_DONE 02 | |
32 | #define B_ERROR 04 | |
33 | #define B_BUSY 010 | |
34 | #define B_XMEM 060 | |
35 | #define B_WANTED 0100 | |
36 | #define B_RELOC 0200 | |
37 | #define B_ASYNC 0400 | |
38 | #define B_DELWRI 01000 |