1: /*
2: * Random set of variables
3: * used by more than one
4: * routine.
5: */
6: char canonb[CANBSIZ]; /* buffer for erase and kill (#@) */
7: int coremap[CMAPSIZ]; /* space for core allocation */
8: int swapmap[SMAPSIZ]; /* space for swap allocation */
9: int *rootdir; /* pointer to inode of root directory */
10: int cputype; /* type of cpu =40, 45, or 70 */
11: int execnt; /* number of processes in exec */
12: int lbolt; /* time of day in 60th not in time */
13: int time[2]; /* time in sec from 1970 */
14: int tout[2]; /* time of day of next sleep */
15: /*
16: * The callout structure is for
17: * a routine arranging
18: * to be called by the clock interrupt
19: * (clock.c) with a specified argument,
20: * in a specified amount of time.
21: * Used, for example, to time tab
22: * delays on teletypes.
23: */
24: struct callo
25: {
26: int c_time; /* incremental time */
27: int c_arg; /* argument to routine */
28: int (*c_func)(); /* routine */
29: } callout[NCALL];
30: /*
31: * Mount structure.
32: * One allocated on every mount.
33: * Used to find the super block.
34: */
35: struct mount
36: {
37: int m_dev; /* device mounted */
38: int *m_bufp; /* pointer to superblock */
39: int *m_inodp; /* pointer to mounted on inode */
40: } mount[NMOUNT];
41: int mpid; /* generic for unique process id's */
42: char runin; /* scheduling flag */
43: char runout; /* scheduling flag */
44: char runrun; /* scheduling flag */
45: char curpri; /* more scheduling */
46: int maxmem; /* actual max memory per process */
47: int *lks; /* pointer to clock device */
48: int rootdev; /* dev of root see conf.c */
49: int swapdev; /* dev of swap see conf.c */
50: int swplo; /* block number of swap space */
51: int nswap; /* size of swap space */
52: int updlock; /* lock for sync */
53: int rablock; /* block to be read ahead */
54: char regloc[]; /* locs. of saved user registers (trap.c) */
Defined variables
canonb
defined in line
6; used 4 times
lbolt
defined in line
12; used 4 times
lks
defined in line
47; used 6 times
mount
defined in line
40; used 12 times
mpid
defined in line
41; used 5 times
nswap
defined in line
51; used 1 times
runin
defined in line
42; used 8 times
swplo
defined in line
50; used 1 times
time
defined in line
13; used 24 times
tout
defined in line
14; used 11 times
Defined struct's
callo
defined in line
24; used 4 times
mount
defined in line
35; used 10 times
Usage of this include