|
|
1.1 root 1: /* param.c 4.2 81/04/02 */
2:
3: #include "../h/param.h"
4: #include "../h/systm.h"
5: #include "../h/dir.h"
6: #include "../h/user.h"
7: #include "../h/proc.h"
8: #include "../h/text.h"
9: #include "../h/inode.h"
10: #include "../h/file.h"
11: #include "../h/callout.h"
12: #include "../h/clist.h"
13: #include "../h/cmap.h"
14: /*
15: * System parameter formulae.
16: *
17: * This file is copied into each directory where we compile
18: * the kernel; it should be modified there to suit local taste
19: * if necessary.
20: *
21: * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx
22: */
23:
24: int hz = HZ;
25: int timezone = TIMEZONE;
26: int dstflag = DST;
27: #define NPROC (20 + 8 * MAXUSERS)
28: int nproc = NPROC;
29: int ntext = 24 + MAXUSERS;
30: int ninode = (NPROC + 16 + MAXUSERS) + 32;
31: int nfile = 8 * (NPROC + 16 + MAXUSERS) / 10 + 32;
32: int ncallout = 16 + MAXUSERS;
33: int nclist = 100 + 16 * MAXUSERS;
34:
35: /*
36: * These are initialized at bootstrap time
37: * to values dependent on memory size
38: */
39: int nbuf, nswbuf;
40:
41: /*
42: * These have to be allocated somewhere; allocating
43: * them here forces loader errors if this file is omitted.
44: */
45: struct proc *proc, *procNPROC;
46: struct text *text, *textNTEXT;
47: struct inode *inode, *inodeNINODE;
48: struct file *file, *fileNFILE;
49: struct callout *callout;
50: struct cblock *cfree;
51:
52: struct buf *buf, *swbuf;
53: short *swsize;
54: int *swpf;
55: char *buffers;
56: struct cmap *cmap, *ecmap;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.