Annotation of researchv8dc/sys/dev/param.c, revision 1.1.1.1

1.1       root        1: /*     param.c 4.2     81/04/02        */
                      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/cmap.h"
                     13: /*
                     14:  * System parameter formulae.
                     15:  *
                     16:  * This file is copied into each directory where we compile
                     17:  * the kernel; it should be modified there to suit local taste
                     18:  * if necessary.
                     19:  *
                     20:  * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx
                     21:  */
                     22: 
                     23: int    hz = HZ;
                     24: int    timezone = TIMEZONE;
                     25: int    dstflag = DST;
                     26: #define        NPROC (20 + 8 * MAXUSERS)
                     27: int    nproc = NPROC;
                     28: int    ntext = 24 + MAXUSERS;
                     29: int    ninode = 2 * (NPROC + 16 + MAXUSERS) + 32;
                     30: int    nfile = NPROC + 16 + MAXUSERS + 32;
                     31: int    ncallout = 16 + MAXUSERS;
                     32: 
                     33: /*
                     34:  * These are initialized at bootstrap time
                     35:  * to values dependent on memory size
                     36:  */
                     37: int    nbuf, nswbuf;
                     38: 
                     39: /*
                     40:  * These have to be allocated somewhere; allocating
                     41:  * them here forces loader errors if this file is omitted.
                     42:  */
                     43: struct proc *proc, *procNPROC;
                     44: struct text *text, *textNTEXT;
                     45: struct inode *inode, *inodeNINODE;
                     46: struct file *file, *fileNFILE;
                     47: struct         callout *callout;
                     48: 
                     49: struct buf *buf, *swbuf;
                     50: short  *swsize;
                     51: int    *swpf;
                     52: char   *buffers;
                     53: struct cmap *cmap, *ecmap;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.