Kernel Functions for Drivers bpmapout(9F)
NAME
bpmapout - deallocate virtual address space
SYNOPSIS
#include
#include
void bpmapout(struct buf *bp);
INTERFACE LEVEL
Architecture independent level 1 (DI/DKI).
PARAMETERS
bp Pointer to the buffer header structure.
DESCRIPTION
bpmapout() deallocates system virtual address space allo-
cated by a previous call to bpmapin(9F).bpmapout() should
only be called on buffers which have been allocated and are
owned by the device driver. It must not be called on buffers
passed to the driver through the strategy(9E) entry point
(for example a filesystem). Because bpmapin(9F) does not
keep a reference count, bpmapout() will wipe out any kernel
mapping that a layer above the device driver might rely on.
CONTEXT
bpmapout() can be called from user context only.
SEE ALSO
strategy(9E), bpmapin(9F), buf(9S)
Writing Device Drivers
SunOS 5.11 Last change: 15 Nov 1996 1
|