1*3783Swnj /* param.c 4.5 81/05/15 */ 23124Swnj 33124Swnj #include "../h/param.h" 43124Swnj #include "../h/systm.h" 53744Sroot #ifdef BBNNET 63744Sroot #include "../bbnnet/net.h" 73744Sroot #include "../bbnnet/imp.h" 83744Sroot #include "../bbnnet/ucb.h" 93744Sroot #endif BBNNET 103124Swnj #include "../h/dir.h" 113124Swnj #include "../h/user.h" 123124Swnj #include "../h/proc.h" 133124Swnj #include "../h/text.h" 143124Swnj #include "../h/inode.h" 153124Swnj #include "../h/file.h" 163124Swnj #include "../h/callout.h" 173124Swnj #include "../h/clist.h" 183124Swnj #include "../h/cmap.h" 193620Sroot #include "../h/port.h" 203124Swnj /* 213124Swnj * System parameter formulae. 223124Swnj * 233124Swnj * This file is copied into each directory where we compile 243124Swnj * the kernel; it should be modified there to suit local taste 253124Swnj * if necessary. 263124Swnj * 273124Swnj * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx 283124Swnj */ 293124Swnj 303124Swnj int hz = HZ; 313124Swnj int timezone = TIMEZONE; 323124Swnj int dstflag = DST; 333124Swnj #define NPROC (20 + 8 * MAXUSERS) 343124Swnj int nproc = NPROC; 353124Swnj int ntext = 24 + MAXUSERS; 363463Sroot int ninode = (NPROC + 16 + MAXUSERS) + 32; 37*3783Swnj int nfile = 8 * (NPROC + 16 + MAXUSERS) / 10 + 32; 383124Swnj int ncallout = 16 + MAXUSERS; 393124Swnj int nclist = 100 + 16 * MAXUSERS; 403620Sroot int nport = NPROC / 2; 413744Sroot #ifdef BBNNET 423744Sroot int nnetpages = NNETPAGES; 433744Sroot int nwork = NWORK; 443744Sroot int nnetcon = NCON; 453744Sroot int nhost = NHOST; 463744Sroot #endif BBNNET 473124Swnj 483124Swnj /* 493124Swnj * These are initialized at bootstrap time 503124Swnj * to values dependent on memory size 513124Swnj */ 523124Swnj int nbuf, nswbuf; 533124Swnj 543124Swnj /* 553124Swnj * These have to be allocated somewhere; allocating 563124Swnj * them here forces loader errors if this file is omitted. 573124Swnj */ 583124Swnj struct proc *proc, *procNPROC; 593124Swnj struct text *text, *textNTEXT; 603124Swnj struct inode *inode, *inodeNINODE; 613124Swnj struct file *file, *fileNFILE; 623124Swnj struct callout *callout; 633124Swnj struct cblock *cfree; 643124Swnj struct buf *buf, *swbuf; 653124Swnj short *swsize; 663124Swnj int *swpf; 673124Swnj char *buffers; 683124Swnj struct cmap *cmap, *ecmap; 693744Sroot #ifdef BBNNET 703744Sroot struct pfree *freetab; 713744Sroot struct work *workfree, *workNWORK; 723744Sroot struct ucb *contab, *conNCON; 733744Sroot struct host *host, *hostNHOST; 743744Sroot struct net netcb; 753744Sroot struct net_stat netstat; 763744Sroot struct impstat imp_stat; 773744Sroot #endif BBNNET 78