home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V7 / usr / sys / h / systm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-03  |  2.1 KB  |  82 lines

  1. /*
  2.  * Random set of variables
  3.  * used by more than one
  4.  * routine.
  5.  */
  6. char    canonb[CANBSIZ];    /* buffer for erase and kill (#@) */
  7. struct inode *rootdir;        /* pointer to inode of root directory */
  8. struct proc *runq;        /* head of linked list of running processes */
  9. int    cputype;        /* type of cpu =40, 45, or 70 */
  10. int    lbolt;            /* time of day in 60th not in time */
  11. time_t    time;            /* time in sec from 1970 */
  12.  
  13. /*
  14.  * Nblkdev is the number of entries
  15.  * (rows) in the block switch. It is
  16.  * set in binit/bio.c by making
  17.  * a pass over the switch.
  18.  * Used in bounds checking on major
  19.  * device numbers.
  20.  */
  21. int    nblkdev;
  22.  
  23. /*
  24.  * Number of character switch entries.
  25.  * Set by cinit/tty.c
  26.  */
  27. int    nchrdev;
  28.  
  29. int    mpid;            /* generic for unique process id's */
  30. char    runin;            /* scheduling flag */
  31. char    runout;            /* scheduling flag */
  32. char    runrun;            /* scheduling flag */
  33. char    curpri;            /* more scheduling */
  34. int    maxmem;            /* actual max memory per process */
  35. physadr    lks;            /* pointer to clock device */
  36. daddr_t    swplo;            /* block number of swap space */
  37. int    nswap;            /* size of swap space */
  38. int    updlock;        /* lock for sync */
  39. daddr_t    rablock;        /* block to be read ahead */
  40. extern    char    regloc[];    /* locs. of saved user registers (trap.c) */
  41. char    msgbuf[MSGBUFS];    /* saved "printf" characters */
  42. dev_t    rootdev;        /* device of the root */
  43. dev_t    swapdev;        /* swapping device */
  44. dev_t    pipedev;        /* pipe device */
  45. extern    int    icode[];    /* user init code */
  46. extern    int    szicode;    /* its size */
  47.  
  48. dev_t getmdev();
  49. daddr_t    bmap();
  50. struct inode *ialloc();
  51. struct inode *iget();
  52. struct inode *owner();
  53. struct inode *maknode();
  54. struct inode *namei();
  55. struct buf *alloc();
  56. struct buf *getblk();
  57. struct buf *geteblk();
  58. struct buf *bread();
  59. struct buf *breada();
  60. struct filsys *getfs();
  61. struct file *getf();
  62. struct file *falloc();
  63. int    uchar();
  64. /*
  65.  * Instrumentation
  66.  */
  67. int    dk_busy;
  68. long    dk_time[32];
  69. long    dk_numb[3];
  70. long    dk_wds[3];
  71. long    tk_nin;
  72. long    tk_nout;
  73.  
  74. /*
  75.  * Structure of the system-entry table
  76.  */
  77. extern struct sysent {
  78.     char    sy_narg;        /* total number of arguments */
  79.     char    sy_nrarg;        /* number of args in registers */
  80.     int    (*sy_call)();        /* handler */
  81. } sysent[];
  82.