|
|
1.1 ! root 1: /* bpdump.c - bpdump */ ! 2: ! 3: #include <conf.h> ! 4: #include <kernel.h> ! 5: #include <mark.h> ! 6: #include <bufpool.h> ! 7: ! 8: /*------------------------------------------------------------------------ ! 9: * bpdump - dump the buffer pool table ! 10: *------------------------------------------------------------------------ ! 11: */ ! 12: bpdump() ! 13: { ! 14: int i; ! 15: struct bpool *bpptr; ! 16: ! 17: for (i=0 ; i<NBPOOLS ; i++) { ! 18: bpptr = &bptab[i]; ! 19: kprintf("Buffer Pool %2d: buf size=%4d, sem=%2d, count=%d\n", ! 20: i, bpptr->bpsize, bpptr->bpsem, scount(bpptr->bpsem)); ! 21: } ! 22: return(OK); ! 23: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.