move dhtimer, dztimer, psextsync calls here to clean clock code
[unix-history] / usr / src / sys / conf / param.c
CommitLineData
ab12a1f4 1/* param.c 4.13 82/08/01 */
ec6f91b0
BJ
2
3#include "../h/param.h"
4#include "../h/systm.h"
751b301e 5#include "../h/socket.h"
ec6f91b0
BJ
6#include "../h/dir.h"
7#include "../h/user.h"
8#include "../h/proc.h"
9#include "../h/text.h"
10#include "../h/inode.h"
11#include "../h/file.h"
12#include "../h/callout.h"
13#include "../h/clist.h"
14#include "../h/cmap.h"
01966f05 15#include "../h/mbuf.h"
ab12a1f4 16#include "../h/quota.h"
ec6f91b0
BJ
17/*
18 * System parameter formulae.
19 *
20 * This file is copied into each directory where we compile
21 * the kernel; it should be modified there to suit local taste
22 * if necessary.
23 *
24 * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx
25 */
26
27int hz = HZ;
28int timezone = TIMEZONE;
29int dstflag = DST;
30#define NPROC (20 + 8 * MAXUSERS)
31int nproc = NPROC;
32int ntext = 24 + MAXUSERS;
4aef8eda 33int ninode = (NPROC + 16 + MAXUSERS) + 32;
4f483d7d 34int nfile = 16 * (NPROC + 16 + MAXUSERS) / 10 + 32;
ec6f91b0
BJ
35int ncallout = 16 + MAXUSERS;
36int nclist = 100 + 16 * MAXUSERS;
ef49a333 37int nport = NPROC / 2;
5b3fa994 38int nmbclusters = NMBCLUSTERS;
ab12a1f4
SL
39#if QUOTA
40int nquota = (MAXUSERS * 9)/7 + 3;
41int ndquot = (MAXUSERS*NMOUNT)/4 + NPROC;
42#endif
ec6f91b0
BJ
43
44/*
45 * These are initialized at bootstrap time
46 * to values dependent on memory size
47 */
48int nbuf, nswbuf;
49
50/*
51 * These have to be allocated somewhere; allocating
52 * them here forces loader errors if this file is omitted.
53 */
54struct proc *proc, *procNPROC;
55struct text *text, *textNTEXT;
56struct inode *inode, *inodeNINODE;
57struct file *file, *fileNFILE;
58struct callout *callout;
59struct cblock *cfree;
ec6f91b0
BJ
60struct buf *buf, *swbuf;
61short *swsize;
62int *swpf;
63char *buffers;
64struct cmap *cmap, *ecmap;
ab12a1f4
SL
65#if QUOTA
66struct quota *quota, *quotaNQUOTA;
67struct dquot *dquot, *dquotNDQUOT;
68#endif