brelse(9r) brelse(9r)
NAME
brelse - General: Deallocates a buf structure
SYNOPSIS
void brelse(
register struct buf *bp );
ARGUMENTS
Specifies a pointer to a buf structure. This structure contains information such as the binary status flags, the major/minor device num-
bers, 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 informa-
tion 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)
brelse(9r)