Annotation of xinu/sys/poolinit.c, revision 1.1.1.2

1.1       root        1: /* poolinit.c - poolinit */
                      2: 
                      3: #include <conf.h>
                      4: #include <kernel.h>
                      5: #include <mark.h>
                      6: #include <bufpool.h>
                      7: 
                      8: struct bpool   bptab[NBPOOLS];
                      9: int    nbpools;
                     10: #ifdef MEMMARK
                     11: MARKER bpmark;                         /* self initializing mark       */
                     12: #endif
                     13: 
                     14: /*------------------------------------------------------------------------
                     15:  *  poolinit  --  initialize the buffer pool routines
                     16:  *------------------------------------------------------------------------
                     17:  */
                     18: poolinit()
                     19: {
                     20: #ifdef MEMMARK
                     21:        int     status;
1.1.1.2 ! root       22: #endif
        !            23: 
        !            24: #ifdef DEBUG
        !            25:        dotrace("poolinit", NULL, 0);
        !            26: #endif
1.1       root       27: 
1.1.1.2 ! root       28: #ifdef MEMMARK
        !            29:        disable();
1.1       root       30:        if ( (status=mark(bpmark)) == OK) {
                     31:                nbpools = 0;
                     32:        }
1.1.1.2 ! root       33:        restore();
1.1       root       34:        return( (status==OK) ? OK : SYSERR );
                     35: #else
                     36:        nbpools = 0;
                     37:        return(OK);
                     38: #endif
                     39: }

unix.superglobalmegacorp.com

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