DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

brelse(D3)


brelse -- return a buffer to the system's free list

Synopsis

   #include <sys/types.h>
   #include <sys/buf.h>
   #include <sys/ddi.h>
   

void brelse(struct buf_t *bp);

Description

The brelse function returns the buffer specified by bp to the system's buffer free list. If there were any processes waiting for this specific buffer to become free, or for any buffer to become available on the free list, one is awakened.

Arguments


bp
Pointer to the buffer header structure.

Return values

None

Usage

The buffer specified by bp must have been previously allocated by a call to geteblk(D3) or ngeteblk(D3). brelse may not be called to release a buffer which has been allocated by any other means.

Context and synchronization

Non-blockable, interrupt, user, or blockable context.

Hardware applicability

All

Version applicability

ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp

References

biodone(D3), biowait(D3), buf(D4), clrbuf(D3), geteblk(D3), ngeteblk(D3)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005