Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ brelse(9F) — SunOS 5.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

strategy(9E)

biodone(9F)

biowait(9F)

clrbuf(9F)

getrbuf(9F)

brelse(9F)

NAME

brelse − return buffer to the free list

SYNOPSIS

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

ARGUMENTS

bp Pointer to a buf(9S) structure. 

INTERFACE LEVEL

Architecture independent level 1 (DDI/DKI). 

DESCRIPTION

brelse() returns a previously allocated buffer to the free buffer list.  If any processes are waiting for this buffer to be released, or for any buffer to become available, they are notified.

CONTEXT

brelse() can be called from user or interrupt context.

SEE ALSO

strategy(9E), biodone(9F), biowait(9F), clrbuf(9F), getrbuf(9F)

SunOS 5.1 Writing Device Drivers

WARNINGS

Do not call brelse() on buffers allocted by getrbuf(9F), or on buffers passed to the strategy(9E) routine. 

BUGS

There is no sensible way for device drivers to use brelse(). 

SunOS 5.2  —  Last change: 16 Feb 1993

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026