|
|
1.1 ! root 1: /* bufpool.h */ ! 2: ! 3: #ifndef NBPOOLS ! 4: #define NBPOOLS 10 /* Maximum number of pools */ ! 5: #endif ! 6: #ifndef BPMAXB ! 7: #define BPMAXB 10240 /* Maximum buffer length */ ! 8: #endif ! 9: #define BPMINB 2 /* Minimum buffer length */ ! 10: #ifndef BPMAXN ! 11: #define BPMAXN 100 /* Maximum buffers in any pool */ ! 12: #endif ! 13: struct bpool { /* Description of a single pool */ ! 14: int bpsize; /* size of buffers in this pool */ ! 15: char *bpnext; /* pointer to next free buffer */ ! 16: int bpsem /* semaphore that counts buffers*/ ! 17: }; /* currently in THIS pool */ ! 18: ! 19: extern struct bpool bptab[]; /* Buffer pool table */ ! 20: extern int nbpools; /* current number of pools */ ! 21: #ifdef MEMMARK ! 22: extern MARKER bpmark; ! 23: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.