cdevpath hack
[unix-history] / usr / src / sys / conf / param.c
CommitLineData
4aef8eda 1/* param.c 4.2 81/04/02 */
ec6f91b0
BJ
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
24int hz = HZ;
25int timezone = TIMEZONE;
26int dstflag = DST;
27#define NPROC (20 + 8 * MAXUSERS)
28int nproc = NPROC;
29int ntext = 24 + MAXUSERS;
4aef8eda 30int ninode = (NPROC + 16 + MAXUSERS) + 32;
ec6f91b0
BJ
31int nfile = 8 * (NPROC + 16 + MAXUSERS) / 10;
32int ncallout = 16 + MAXUSERS;
33int nclist = 100 + 16 * MAXUSERS;
34
35/*
36 * These are initialized at bootstrap time
37 * to values dependent on memory size
38 */
39int nbuf, nswbuf;
40
41/*
42 * These have to be allocated somewhere; allocating
43 * them here forces loader errors if this file is omitted.
44 */
45struct proc *proc, *procNPROC;
46struct text *text, *textNTEXT;
47struct inode *inode, *inodeNINODE;
48struct file *file, *fileNFILE;
49struct callout *callout;
50struct cblock *cfree;
51
52struct buf *buf, *swbuf;
53short *swsize;
54int *swpf;
55char *buffers;
56struct cmap *cmap, *ecmap;