getnewbuf(9r)getnewbuf(9r)NAMEgetnewbuf - General: Allocates a buf structure
SYNOPSIS
struct buf * getnewbuf(
void );
ARGUMENTS
None
DESCRIPTION
The getnewbuf routine allocates a buf structure for performing I/O
operations. This routine guarantees that the members of the structure
are properly initialized prior to initiating the I/O request. Device
drivers call this routine prior to calling
physio, which performs the I/O operation.
RETURN VALUES
Upon successful completion, getnewbuf returns a pointer to the allo‐
cated buf structure. On failure, it returns a NULL pointer.
getnewbuf(9r)