* Random set of variables
char canonb
[CANBSIZ
]; /* buffer for erase and kill (#@) */
struct inode
*rootdir
; /* pointer to inode of root directory */
struct proc
*runq
; /* head of linked list of running processes */
int cputype
; /* type of cpu =40, 45, or 70 */
int lbolt
; /* time of day in 60th not in time */
time_t time
; /* time in sec from 1970 */
* Nblkdev is the number of entries
* (rows) in the block switch. It is
* set in binit/bio.c by making
* a pass over the switch.
* Used in bounds checking on major
* Number of character switch entries.
int mpid
; /* generic for unique process id's */
char runin
; /* scheduling flag */
char runout
; /* scheduling flag */
char runrun
; /* scheduling flag */
char curpri
; /* more scheduling */
int maxmem
; /* actual max memory per process */
physadr lks
; /* pointer to clock device */
daddr_t swplo
; /* block number of swap space */
int nswap
; /* size of swap space */
int updlock
; /* lock for sync */
daddr_t rablock
; /* block to be read ahead */
extern char regloc
[]; /* locs. of saved user registers (trap.c) */
char msgbuf
[MSGBUFS
]; /* saved "printf" characters */
dev_t rootdev
; /* device of the root */
dev_t swapdev
; /* swapping device */
dev_t pipedev
; /* pipe device */
extern int icode
[]; /* user init code */
extern int szicode
; /* its size */
* Structure of the system-entry table
char sy_narg
; /* total number of arguments */
char sy_nrarg
; /* number of args in registers */
int (*sy_call
)(); /* handler */