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
- in line 19(2)
- in /usr/src/cmd/pstat.c line
210-211(4),
229(4),
237(2)
- in /usr/src/sys/GENERIC/param.c line
107(2),
134(2)
- in /usr/src/sys/conf/param.c line
107(2),
134(2)
- in /usr/src/sys/sys/clock.c line
321(2)
- in /usr/src/sys/sys/endcore.c line
21(2)
- in /usr/src/sys/sys/sigjcl.c line
697(2)
- in /usr/src/sys/sys/signojcl.c line
406(2)
- in /usr/src/sys/sys/slp.c line
514(2),
561(2)
- in /usr/src/sys/sys/text.c line
106(2),
148-150(4),
251(2),
283(2),
294(2),
307(2),
331(2),
344(2),
358(2)
- in /usr/src/sys/sys/ureg.c line
27(2)
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
XWRIT
defined in line
23; used 6 times
Usage of this include