brelse(D3DK) —
.IX \f4brelse\fP(D3DK)
NAME
brelse − return a buffer to the system’s free list
SYNOPSIS
#include <sys/types.h>
#include <sys/buf.h>
void brelse(struct buf ∗bp);
ARGUMENTS
bpPointer to the buffer header.
DESCRIPTION
The brelse function returns the buffer specified by bp to the system’s buffer free list. If there were any processes waiting for this specific buffer to become free, or for any buffer to become available on the free list, one is awakened. The buffer specified by bp must have been previously allocated by a call to geteblk(D3DK) or ngeteblk(D3DK). brelse may not be called to release a buffer which has been allocated by any other means.
RETURN VALUE
None.
LEVEL
Base or Interrupt.
NOTES
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks may be held across calls to this function.
SEE ALSO
clrbuf(D3DK), biodone(D3DK), biowait(D3DK), geteblk(D3DK), ngeteblk(D3DK), buf(D4DK)
DDI/DKI