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.1 (Berkeley) 6/4/86
   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
  18:  * (rows) in the block switch. It is
  19:  * set in binit/bio.c by making
  20:  * a pass over the switch.
  21:  * Used in bounds checking on major
  22:  * device numbers.
  23:  */
  24: int nblkdev;
  25: 
  26: /*
  27:  * Number of character switch entries.
  28:  * Set by cinit/prim.c
  29:  */
  30: int nchrdev;
  31: 
  32: int nswdev;         /* number of swap devices */
  33: int mpid;           /* generic for unique process id's */
  34: char    runin;          /* scheduling flag */
  35: char    runout;         /* scheduling flag */
  36: int runrun;         /* scheduling flag */
  37: char    kmapwnt;        /* kernel map want flag */
  38: char    curpri;         /* more scheduling */
  39: 
  40: int maxmem;         /* actual max memory per process */
  41: int physmem;        /* physical memory on this CPU */
  42: 
  43: int nswap;          /* size of swap space */
  44: int updlock;        /* lock for sync */
  45: daddr_t rablock;        /* block to be read ahead */
  46: int rasize;         /* size of block in rablock */
  47: extern  int intstack[];     /* stack for interrupts */
  48: dev_t   rootdev;        /* device of the root */
  49: dev_t   dumpdev;        /* device to take dumps on */
  50: long    dumplo;         /* offset into dumpdev */
  51: dev_t   swapdev;        /* swapping device */
  52: dev_t   argdev;         /* device for argument lists */
  53: 
  54: #ifdef vax
  55: extern  int icode[];        /* user init code */
  56: extern  int szicode;        /* its size */
  57: #endif
  58: 
  59: daddr_t bmap();
  60: caddr_t calloc();
  61: int memall();
  62: int vmemall();
  63: caddr_t wmemall();
  64: swblk_t vtod();
  65: 
  66: /*
  67:  * Structure of the system-entry table
  68:  */
  69: extern struct sysent
  70: {
  71:     int sy_narg;        /* total number of arguments */
  72:     int (*sy_call)();       /* handler */
  73: } sysent[];
  74: 
  75: int noproc;         /* no one is running just now */
  76: char    *panicstr;
  77: int wantin;
  78: int boothowto;      /* reboot flags, from console subsystem */
  79: int selwait;
  80: 
  81: extern  char vmmap[];       /* poor name! */
  82: 
  83: /* casts to keep lint happy */
  84: #define insque(q,p) _insque((caddr_t)q,(caddr_t)p)
  85: #define remque(q)   _remque((caddr_t)q)

Defined variables

curpri defined in line 38; used 5 times
maxmem defined in line 40; used 10 times
mpid defined in line 33; used 11 times
nchrdev defined in line 30; used 2 times
nswap defined in line 43; used 9 times
nswdev defined in line 32; used 12 times
panicstr defined in line 76; used 3 times
rasize defined in line 46; used 5 times
runin defined in line 34; used 7 times
runout defined in line 35; used 14 times
runrun defined in line 36; used 6 times
updlock defined in line 44; used 3 times
wantin defined in line 77; used 5 times

Defined struct's

sysent defined in line 69; used 6 times

Defined macros

Usage of this include

systm.h used 137 times
Last modified: 1986-06-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1172
Valid CSS Valid XHTML 1.0 Strict