1: /*
2: * header file for standalone package
3: */
4:
5: /*
6: * io block: includes an
7: * inode, cells for the use of seek, etc,
8: * and a buffer.
9: */
10: struct iob {
11: char i_flgs;
12: struct inode i_ino;
13: int i_unit;
14: daddr_t i_boff;
15: daddr_t i_cyloff;
16: off_t i_offset;
17: daddr_t i_bn;
18: char *i_ma;
19: int i_cc;
20: #ifndef UCB_NKB
21: char i_buf[512];
22: #else
23: char i_buf[BSIZE];
24: #endif
25: };
26:
27: #define F_READ 01
28: #define F_WRITE 02
29: #define F_ALLOC 04
30: #define F_FILE 010
31:
32:
33:
34:
35: /*
36: * dev switch
37: */
38: struct devsw {
39: char *dv_name;
40: int (*dv_strategy)();
41: int (*dv_open)();
42: int (*dv_close)();
43: };
44:
45: struct devsw devsw[];
46:
47: /*
48: * request codes. Must be the same a F_XXX above
49: */
50: #define READ 1
51: #define WRITE 2
52:
53:
54: #define NBUFS 4
55:
56:
57: #ifndef UCB_NKB
58: char b[NBUFS][512];
59: #else
60: char b[NBUFS][BSIZE];
61: #endif
62: daddr_t blknos[NBUFS];
63:
64:
65:
66: #define NFILES 4
67: struct iob iob[NFILES];
68:
69: /*
70: * Set to which 32Kw segment the code is physically running in.
71: * Must be set by the users main (or there abouts).
72: */
73: int segflag;
Defined variables
b
defined in line
60; used 3 times
devsw
defined in line
45; used 2 times
iob
defined in line
67; used 8 times
Defined struct's
devsw
defined in line
38; used 4 times
iob
defined in line
10; used 54 times
- in line 67(2)
- in /usr/src/sys/stand/libsa/SYS.c line
17(2),
52(2),
91(2),
177(2),
255(2),
280(2),
365(2),
408(2),
438(2),
521(2)
- in /usr/src/sys/stand/libsa/dvhp.c line
89(2)
- in /usr/src/sys/stand/libsa/hk.c line
86(2)
- in /usr/src/sys/stand/libsa/ht.c line
73(2),
92(2),
98(2)
- in /usr/src/sys/stand/libsa/rk.c line
35(2)
- in /usr/src/sys/stand/libsa/rl.c line
63(2)
- in /usr/src/sys/stand/libsa/rm.c line
76(2)
- in /usr/src/sys/stand/libsa/rp.c line
43(2)
- in /usr/src/sys/stand/libsa/tm.c line
47(2),
53(2),
66(2)
- in /usr/src/sys/stand/libsa/ts.c line
219(2),
247-252(4)
- in /usr/src/sys/stand/libsa/xp.c line
92(2)
Defined macros
NBUFS
defined in line
54; used 3 times
READ
defined in line
50; used 11 times
WRITE
defined in line
51; used 8 times
Usage of this include