Xinu7/man/man2/mkpool.doc




MKPOOL(2)           Xinu Programmer's Manual            MKPOOL(2)



NAME
     mkpool - create a buffer pool

SYNOPSIS
     int mkpool(bufsiz, numbufs)
     int bufsiz;
     int numbufs;

DESCRIPTION
     _M_k_p_o_o_l creates a pool of _n_u_m_b_u_f_s buffers, each of size _b_u_f_-
     _s_i_z, and returns an integer identifying the pool.  If no
     more pools can be created, or if the arguments are
     incorrect, _m_k_p_o_o_l returns SYSERR.

SEE ALSO
     getbuf(2), freebuf(2), poolinit(2)

BUGS
     At present there is no way to reclaim space from buffer
     pools once they are no longer needed.



































Version 6b               Printed 1/12/87                        1