getnewbuf - General: Allocates a buf structure
struct buf * getnewbuf(
void );
None
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.
Upon successful completion, getnewbuf returns a pointer to
the allocated buf structure. On failure, it returns a
NULL pointer.
getnewbuf(9r)
[ Back ] |