h/text.h

05050 /* 05051 * Text structure. 05052 * One allocated per pure 05053 * procedure on swap device. 05054 * Manipulated by text.c 05055 */ 05056 struct text 05057 { 05058 short x_daddr; /* disk address of segment (relative to swplo) */ 05059 short x_caddr; /* core address, if loaded */ 05060 short x_size; /* size (clicks) */ 05061 struct inode *x_iptr; /* inode of prototype */ 05062 char x_count; /* reference count */ 05063 char x_ccount; /* number of loaded references */ 05064 char x_flag; /* traced, written flags */ 05065 }; 05066 05067 extern struct text text[]; 05068 05069 #define XTRC 01 /* Text may be written, exclusive use */ 05070 #define XWRIT 02 /* Text written into, must swap out */ 05071 #define XLOAD 04 /* Currently being read from file */ 05072 #define XLOCK 010 /* Being swapped in or out */ 05073 #define XWANT 020 /* Wanted for swapping */ 05074 05075 05076 05077 05078 05079 05080 05081 05082 05083 05084 05085 05086 05087 05088 05089 05090 05091 05092 05093 05094 05095 05096 05097 05098 05099