Index Index for
Section 9r
Index Alphabetical
listing for G
Bottom of page Bottom of
page

getnewbuf(9r)

NAME

getnewbuf - 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 allocated buf structure. On failure, it returns a NULL pointer.

Index Index for
Section 9r
Index Alphabetical
listing for G
Top of page Top of
page