Kernel Functions for Drivers bpcopyout(9F)
NAME
bpcopyout - copy from a driver buffer into a buf(9S)
SYNOPSIS
#include
#include
int bpcopyout(void *driverbuf, struct buf *bp, offsett offset,
sizet size);
INTERFACE LEVEL
Architecture independent level 1 (DI/DKI).
PARAMETERS
bp Pointer to the buffer header structure to copy
to.
driverbuf Driver buffer to copy from.
offset Offset into bp where to start copying.
size Size of copy.
DESCRIPTION
The bpcopyout() function copies size bytes starting from
the driver buffer driverbuf to offset bytes into the memory
associated with bp. The offset only applies to bp.
RETURN VALUES
Under normal conditions, 0 is returned to indicate a suc-
cessful copy. Otherwise, -1 is returned if bp references
invalid pages.
CONTEXT
The bpcopyout() function can be called from user or kernel
context only.
SEE ALSO
bpcopyin(9F), bpmapin(9F), bpmapout(9F), ddicopyout(9F),
buf(9S)
SunOS 5.11 Last change: 16 Oct 2007 1
|