man Pages(9F): DDI and DKI Kernel Functions
只搜寻这本书
以 PDF 格式下载本书

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)
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( ).