code:text - ikarishinjieva/unixV6-code-analyze-chs GitHub Wiki
4300 /*
4301 * Text structure.
4302 * One allocated per pure
4303 * procedure on swap device.
4304 * Manipulated by text.c
4305 */
4306 struct text
4307 {
4308 int x_daddr; /* disk address of segment */
4309 int x_caddr; /* core address, if loaded */
4310 int x_size; /* size (*64) */
4311 int *x_iptr; /* inode of prototype */
- 共享正文段长度 (块数)
4312 char x_count; /* reference count */
4313 char x_ccount; /* number of loaded references */
- 引用此共享正文段 的进程数
4314 } text[NTEXT];
4315 /* ------------------------- */
- NTEXT 定义在 param.h 0145行,值为40
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349