1*4668Swnj /* param.c 4.7 81/10/29 */ 23124Swnj 33124Swnj #include "../h/param.h" 43124Swnj #include "../h/systm.h" 53744Sroot #ifdef BBNNET 6*4668Swnj #include "../inet/inet.h" 7*4668Swnj #include "../inet/inet_systm.h" 8*4668Swnj #include "../inet/imp.h" 9*4668Swnj #include "../h/socket.h" 103744Sroot #endif BBNNET 113124Swnj #include "../h/dir.h" 123124Swnj #include "../h/user.h" 133124Swnj #include "../h/proc.h" 143124Swnj #include "../h/text.h" 153124Swnj #include "../h/inode.h" 163124Swnj #include "../h/file.h" 173124Swnj #include "../h/callout.h" 183124Swnj #include "../h/clist.h" 193124Swnj #include "../h/cmap.h" 203620Sroot #include "../h/port.h" 213124Swnj /* 223124Swnj * System parameter formulae. 233124Swnj * 243124Swnj * This file is copied into each directory where we compile 253124Swnj * the kernel; it should be modified there to suit local taste 263124Swnj * if necessary. 273124Swnj * 283124Swnj * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx 293124Swnj */ 303124Swnj 313124Swnj int hz = HZ; 323124Swnj int timezone = TIMEZONE; 333124Swnj int dstflag = DST; 343124Swnj #define NPROC (20 + 8 * MAXUSERS) 353124Swnj int nproc = NPROC; 363124Swnj int ntext = 24 + MAXUSERS; 373463Sroot int ninode = (NPROC + 16 + MAXUSERS) + 32; 383783Swnj int nfile = 8 * (NPROC + 16 + MAXUSERS) / 10 + 32; 393124Swnj int ncallout = 16 + MAXUSERS; 403124Swnj int nclist = 100 + 16 * MAXUSERS; 413620Sroot int nport = NPROC / 2; 423744Sroot #ifdef BBNNET 433744Sroot int nnetpages = NNETPAGES; 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 ucb *contab, *conNCON; 713744Sroot struct host *host, *hostNHOST; 723744Sroot struct net netcb; 733744Sroot struct net_stat netstat; 743744Sroot struct impstat imp_stat; 753744Sroot #endif BBNNET 76