/* * Text structure. * One allocated per pure procedure on swap device. * Manipulated by text.c */ struct text { short x_daddr; /* disk address of segment (relative to swplo) */ short x_size; /* size (clicks) */ struct proc *x_caddr; /* ptr to linked proc, if loaded */ struct inode *x_iptr; /* inode of prototype */ char x_count; /* reference count */ char x_ccount; /* number of loaded references */ char x_flag; /* traced, written flags */ long x_i_number; /* inode numbr of file in file sys */ long x_i_dev; /* dev from whence text was loaded */ long x_i_time; /* time stamp of file sys text came from */ }; extern struct text text[]; #define XTRC 0x01 /* Text may be written, exclusive use */ #define XWRIT 0x02 /* Text written into, must swap out */ #define XLOAD 0x04 /* Currently being read from file */ #define XLOCK 0x08 /* Being swapped in or out */ #define XWANT 0x10 /* Wanted for swapping */