|
|
1.1 root 1: /*
2: * Copyright (c) 1982, 1986 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)systm.h 7.6 (Berkeley) 5/26/88
7: */
8:
9: /*
10: * Random set of variables
11: * used by more than one
12: * routine.
13: */
14: extern char version[]; /* system version */
15:
16: /*
17: * Nblkdev is the number of entries (rows) in the block switch.
18: * Used in bounds checking on major device numbers.
19: */
20: int nblkdev;
21:
22: /*
23: * Number of character switch entries.
24: */
25: int nchrdev;
26:
27: int nswdev; /* number of swap devices */
28: int mpid; /* generic for unique process id's */
29: char runin; /* scheduling flag */
30: char runout; /* scheduling flag */
31: int runrun; /* scheduling flag */
32: char kmapwnt; /* kernel map want flag */
33: char curpri; /* more scheduling */
34:
35: int maxmem; /* actual max memory per process */
36: int physmem; /* physical memory on this CPU */
37:
38: int nswap; /* size of swap space */
39: int updlock; /* lock for sync */
40: daddr_t rablock; /* block to be read ahead */
41: int rasize; /* size of block in rablock */
42: extern int intstack[]; /* stack for interrupts */
43: dev_t rootdev; /* device of the root */
44: dev_t dumpdev; /* device to take dumps on */
45: long dumplo; /* offset into dumpdev */
46: dev_t swapdev; /* swapping device */
47: dev_t argdev; /* device for argument lists */
48:
49: #if defined(vax) || defined(tahoe)
50: extern int icode[]; /* user init code */
51: extern int szicode; /* its size */
52: #endif
53:
54: daddr_t bmap();
55: int memall();
56: int vmemall();
57: swblk_t vtod();
58:
59: /*
60: * Structure of the system-entry table
61: */
62: extern struct sysent
63: {
64: int sy_narg; /* total number of arguments */
65: int (*sy_call)(); /* handler */
66: } sysent[];
67:
68: int noproc; /* no one is running just now */
69: char *panicstr;
70: int wantin;
71: int boothowto; /* reboot flags, from console subsystem */
72: #ifdef KADB
73: char *bootesym; /* end of symbol info from boot */
74: #endif
75: int selwait;
76:
77: extern char vmmap[]; /* poor name! */
78:
79: /* casts to keep lint happy */
80: #define insque(q,p) _insque((caddr_t)q,(caddr_t)p)
81: #define remque(q) _remque((caddr_t)q)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.