1 /* systm.h 4.22 81/11/26 */ 2 3 /* 4 * Random set of variables 5 * used by more than one 6 * routine. 7 */ 8 int hz; /* frequency of the clock */ 9 int timezone; /* minutes west from greenwich */ 10 int dstflag; /* daylight savings time in effect? */ 11 char version[]; /* system version */ 12 int lbolt; /* time of day in 60th not in time */ 13 time_t time; /* time in sec from 1970 */ 14 time_t bootime; /* time at which booted */ 15 16 int hand; /* current index into coremap used by daemon */ 17 18 /* 19 * Nblkdev is the number of entries 20 * (rows) in the block switch. It is 21 * set in binit/bio.c by making 22 * a pass over the switch. 23 * Used in bounds checking on major 24 * device numbers. 25 */ 26 int nblkdev; 27 28 /* 29 * Number of character switch entries. 30 * Set by cinit/prim.c 31 */ 32 int nchrdev; 33 34 int nswdev; /* number of swap devices */ 35 int mpid; /* generic for unique process id's */ 36 char runin; /* scheduling flag */ 37 char runout; /* scheduling flag */ 38 int runrun; /* scheduling flag */ 39 char kmapwnt; /* kernel map want flag */ 40 char curpri; /* more scheduling */ 41 42 int maxmem; /* actual max memory per process */ 43 int physmem; /* physical memory on this CPU */ 44 45 int nswap; /* size of swap space */ 46 int updlock; /* lock for sync */ 47 daddr_t rablock; /* block to be read ahead */ 48 extern int intstack[]; /* stack for interrupts */ 49 dev_t rootdev; /* device of the root */ 50 dev_t dumpdev; /* device to take dumps on */ 51 long dumplo; /* offset into dumpdev */ 52 dev_t swapdev; /* swapping device */ 53 dev_t argdev; /* device for argument lists */ 54 dev_t pipedev; /* pipe device */ 55 56 extern int icode[]; /* user init code */ 57 extern int szicode; /* its size */ 58 59 dev_t getmdev(); 60 daddr_t bmap(); 61 caddr_t calloc(); 62 unsigned max(); 63 unsigned min(); 64 int memall(); 65 int uchar(), schar(); 66 int vmemall(); 67 #if 0 68 char *wmemall(); 69 #endif 70 swblk_t vtod(); 71 72 /* 73 * Structure of the system-entry table 74 */ 75 extern struct sysent 76 { 77 int sy_narg; /* total number of arguments */ 78 int (*sy_call)(); /* handler */ 79 } sysent[]; 80 81 char vmmap[]; /* poor name! */ 82 int umbabeg,umbaend; /* where sensitive vm begins/ends */ 83 int noproc; /* no one is running just now */ 84 extern int catcher[256]; 85 char *panicstr; 86 int wantin; 87 int boothowto; /* reboot flags, from console subsystem */ 88 int selwait; 89 90 /* casts to keep lint happy */ 91 #define insque(q,p) _insque((caddr_t)q,(caddr_t)p) 92 #define remque(q) _remque((caddr_t)q) 93 #define queue(q,p) _queue((caddr_t)q,(caddr_t)p) 94 #define dequeue(q) _dequeue((caddr_t)q) 95