|
|
Xinu for 68000/68010
/* bufpool.h */
#ifndef NBPOOLS
#define NBPOOLS 5 /* Maximum number of pools */
#endif
#ifndef BPMAXB
#define BPMAXB 512 /* Maximum buffer length */
#endif
#define BPMINB 2 /* Minimum buffer length */
#ifndef BPMAXN
#define BPMAXN 100 /* Maximum buffers in any pool */
#endif
struct bpool { /* Description of a single pool */
int bpsize; /* size of buffers in this pool */
char *bpnext; /* pointer to next free buffer */
int bpsem; /* semaphore that counts buffers*/
}; /* currently in THIS pool */
extern struct bpool bptab[]; /* Buffer pool table */
extern int nbpools; /* current number of pools */
#ifdef MEMMARK
extern MARKER bpmark;
#endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.