misc changes
[unix-history] / usr / src / sys / conf / param.c
CommitLineData
0e7ce44f 1/* param.c 4.6 81/10/29 */
ec6f91b0
BJ
2
3#include "../h/param.h"
4#include "../h/systm.h"
fc814008
BJ
5#ifdef BBNNET
6#include "../bbnnet/net.h"
7#include "../bbnnet/imp.h"
8#include "../bbnnet/ucb.h"
9#endif BBNNET
ec6f91b0
BJ
10#include "../h/dir.h"
11#include "../h/user.h"
12#include "../h/proc.h"
13#include "../h/text.h"
14#include "../h/inode.h"
15#include "../h/file.h"
16#include "../h/callout.h"
17#include "../h/clist.h"
18#include "../h/cmap.h"
ef49a333 19#include "../h/port.h"
ec6f91b0
BJ
20/*
21 * System parameter formulae.
22 *
23 * This file is copied into each directory where we compile
24 * the kernel; it should be modified there to suit local taste
25 * if necessary.
26 *
27 * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx
28 */
29
30int hz = HZ;
31int timezone = TIMEZONE;
32int dstflag = DST;
33#define NPROC (20 + 8 * MAXUSERS)
34int nproc = NPROC;
35int ntext = 24 + MAXUSERS;
4aef8eda 36int ninode = (NPROC + 16 + MAXUSERS) + 32;
f1da6c81 37int nfile = 8 * (NPROC + 16 + MAXUSERS) / 10 + 32;
ec6f91b0
BJ
38int ncallout = 16 + MAXUSERS;
39int nclist = 100 + 16 * MAXUSERS;
ef49a333 40int nport = NPROC / 2;
fc814008
BJ
41#ifdef BBNNET
42int nnetpages = NNETPAGES;
fc814008
BJ
43int nnetcon = NCON;
44int nhost = NHOST;
45#endif BBNNET
ec6f91b0
BJ
46
47/*
48 * These are initialized at bootstrap time
49 * to values dependent on memory size
50 */
51int nbuf, nswbuf;
52
53/*
54 * These have to be allocated somewhere; allocating
55 * them here forces loader errors if this file is omitted.
56 */
57struct proc *proc, *procNPROC;
58struct text *text, *textNTEXT;
59struct inode *inode, *inodeNINODE;
60struct file *file, *fileNFILE;
61struct callout *callout;
62struct cblock *cfree;
ec6f91b0
BJ
63struct buf *buf, *swbuf;
64short *swsize;
65int *swpf;
66char *buffers;
67struct cmap *cmap, *ecmap;
fc814008 68#ifdef BBNNET
fc814008
BJ
69struct ucb *contab, *conNCON;
70struct host *host, *hostNHOST;
71struct net netcb;
72struct net_stat netstat;
73struct impstat imp_stat;
74#endif BBNNET