BUFFER(3)
NAME
getbuf − obtain a buffer from a buffer pool
SYNOPSIS
char ∗getbuf(poolid)
int poolid;
DESCRIPTION
Getbuf obtains a free buffer from the pool given by argument poolid, and returns a pointer to the first word of the buffer. If all buffers in the specified pool are in use, the calling process will be blocked until a buffer becomes available. If the argument poolid does not specify a valid pool, getbuf returns SYSERR.
SEE ALSO
freebuf(2), getmem(2), getstk(2), freemem(2), freestk(2)
December 01, 1986 — Xinu Programmer’s Manual