brelse(D3) brelse(D3)
NAME
brelse - return a buffer to the system's free list
SYNOPSIS
#include <sys/types.h>
#include <sys/buf.h>
#include <sys/ddi.h>
void brelse(struct buf_t *bp);
Arguments
bp Pointer to the buffer header structure.
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.
Return Values
None
USAGE
The buffer specified by bp must have been previously allocated
by a call to geteblk(D3) or ngeteblk(D3). brelse may not be
called to release a buffer which has been allocated by any
other means.
Level
Base or Interrupt.
Synchronization Constraints
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks
may be held across calls to this function.
REFERENCES
biodone(D3), biowait(D3), buf(D4), clrbuf(D3), geteblk(D3),
ngeteblk(D3)
NOTICES
Portability
All processors
Copyright 1994 Novell, Inc. Page 1
brelse(D3) brelse(D3)
Applicability
ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp
Copyright 1994 Novell, Inc. Page 2