[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, 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.

Related Information

The geteblk kernel service.

The buf structure.

Block I/O Buffer Cache Kernel Services: Overview and I/O Kernel Services in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]