0200 /* various global variables */ 0201 0202 char canonb[CANBSIZ]; /* buffer for erase and kill (#@) */ 0203 int coremap[CMAPSIZ]; /* space for core allocation */ 0204 int swapmap[SMAPSIZ]; /* space for swap allocation */ 0205 0206 int *rootdir; /* pointer to inode of root directory */ 0207 0208 int cputype; /* type of cpu =40, 45, or 70 */ 0209 0210 int execnt; /* number of processes in exec */ 0211 0212 int lbolt; /* time of day in 60th not in time */ 0213 int time[2]; /* time in sec from 1970 */ 0214 int tout[2]; /* time of day of next sleep */ 0215 0216 int mpid; /* generic for unique process id's */ 0217 0218 char runin; /* scheduling flag */ 0219 char runout; /* scheduling flag */ 0220 char runrun; /* scheduling flag */ 0221 0222 char curpri; /* more scheduling */ 0223 0224 int maxmem; /* actual max memory per process */ 0225 0226 int *lks; /* pointer to clock device */ 0227 0228 int rootdev; /* dev of root see conf.c */ 0229 int swapdev; /* dev of swap see conf.c */ 0230 0231 int swplo; /* block number of swap space */ 0232 int nswap; /* size of swap space */ 0233 0234 int updlock; /* lock for sync */ 0235 int rablock; /* block to be read ahead */ 0236 0237 char regloc[]; /* locs. of saved user registers 0238 (see trap.c) */ 0239 0240 0241 /* ------------------------ */ 0242 0243 0244 0245 0246 0247 0248 0249 0250 0251 /* ------------------------ */ 0252 0253 /* The callout structure is for a routine 0254 * arranging to be called by the clock interrupt 0255 * (see clock.c) with a specified argument, 0256 * within a specified amount of time. 0257 * It is used, for example, to time tab delays 0258 * on teletypes. */ 0259 0260 struct callo 0261 { 0262 int c_time; /* incremental time */ 0263 int c_arg; /* argument to routine */ 0264 int (*c_func)(); /* routine */ 0265 } callout[NCALL]; 0266 /* ------------------------ */ 0267 0268 /* Mount structure: used to locate 0269 * the super block of a mounted file. 0270 */ 0271 0272 struct mount 0273 { 0274 int m_dev; /* device mounted */ 0275 int *m_bufp; /* pointer to superblock */ 0276 int *m_inodp; /* pointer to mounted on inode */ 0277 } mount[NMOUNT]; 0278 /* ------------------------ */ 0279 0280 0281 0282 0283 0284 0285 0286 0287 0288 0289 0290 0291 0292 0293 0294 0295 0296 0297 0298 0299