[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

brelse Kernel Service

Purpose

Frees the specified buffer.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include <sys/buf.h>
void brelse (bp)
struct buf *bp;

Parameter

bp Specifies the address of the buf structure to be freed.

Description

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.

Execution Environment

The brelse kernel service can be called from either the process or interrupt environment.

Implementation Specifics

The brelse kernel service is part of Base Operating System (BOS) Runtime.

Related Information

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.


[ Previous | Next | Contents | Home | Search ]