1: /*
   2:  * Text structure.
   3:  * One allocated per pure
   4:  * procedure on swap device.
   5:  * Manipulated by text.c
   6:  */
   7: struct text
   8: {
   9:     short   x_daddr;    /* segment's disk address (relative to swplo) */
  10:     short   x_caddr;    /* core address, if loaded */
  11:     short   x_size;     /* size (clicks) */
  12:     struct  inode *x_iptr;  /* inode of prototype */
  13:     char    x_count;    /* reference count */
  14:     char    x_ccount;   /* number of loaded references */
  15:     char    x_flag;     /* traced, written flags */
  16: };
  17: 
  18: #ifdef  KERNEL
  19: extern  struct  text    text[];
  20: #endif
  21: 
  22: #define XTRC    01      /* Text may be written, exclusive use */
  23: #define XWRIT   02      /* Text written into, must swap out */
  24: #define XLOAD   04      /* Currently being read from file */
  25: #define XLOCK   010     /* Being swapped in or out */
  26: #define XWANT   020     /* Wanted for swapping */
  27: 
  28: /* arguments to xswap: */
  29: #define X_OLDSIZE   (-1)    /* the old size is the same as current */
  30: #define X_DONTFREE  0   /* save core image (for parent in newproc) */
  31: #define X_FREECORE  01  /* free core space after swap */

Defined struct's

text defined in line 7; used 54 times

Defined macros

XLOAD defined in line 24; used 5 times
XLOCK defined in line 25; used 9 times
XTRC defined in line 22; used 1 times
XWANT defined in line 26; used 4 times
X_DONTFREE defined in line 30; used 2 times
X_FREECORE defined in line 31; used 11 times
X_OLDSIZE defined in line 29; used 14 times

Usage of this include

Last modified: 1983-09-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 865
Valid CSS Valid XHTML 1.0 Strict