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

brelse(9r)

NAME

brelse - General: Deallocates a buf structure

SYNOPSIS

void brelse( register struct buf *bp );

ARGUMENTS

bp Specifies a pointer to a buf structure. This structure contains information such as the binary status flags, the major/minor device numbers, and the address of the associated buffer. This buffer is always a special buffer header owned exclusively by the device for handling I/O requests.

DESCRIPTION

The brelse routine deallocates a buf structure that was previously allocated by the getnewbuf routine. The buf structure contains information describing an I/O request. Device drivers call the brelse routine after the I/O request has completed to free the memory used by the buf structure.

RETURN VALUES

None

SEE ALSO

Routines: getnewbuf(9r) Data Structures: buf(9s)

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