#include <sys/types.h> #include <sys/errno.h> #include <sys/buf.h>
void brelse (bp) struct buf *bp;
bp | Specifies the address of the buf structure to be freed. |
The brelse kernel service frees the buffer to which the bp parameter points.
The brelse kernel service awakens any processes waiting for this buffer or for another free buffer. The buffer is then put on the list of available buffers. The buffer is also marked as not busy so that it can either be reclaimed or reallocated.
The brelse service has no return values.
The brelse kernel service can be called from either the process or interrupt environment.
The brelse kernel service is part of Base Operating System (BOS) Runtime.
The geteblk kernel service.
The buf structure.
Block I/O Buffer Cache Kernel Services: Overview and I/O Kernel Services in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts.