Query: bp_copyin
OS: opensolaris
Section: 9f
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
bp_copyin(9F) Kernel Functions for Drivers bp_copyin(9F)NAMEbp_copyin - copy from a buf(9S) into a driver bufferSYNOPSIS#include <sys/types.h> #include <sys/buf.h> int bp_copyin(struct buf *bp, void *driverbuf, offset_t offset, size_t size);INTERFACE LEVELArchitecture independent level 1 (DDI/DKI).PARAMETERSbp Pointer to the buffer header structure to copy from. driverbuf Driver buffer to copy to. offset Offset into bp where to start copying. size Size of copy.DESCRIPTIONThe bp_copyin() function copies size bytes into the memory associated with bp to the destination driver buffer driverbuf. The offset only applies to bp.RETURN VALUESUnder normal conditions, 0 is returned to indicate a successful copy. Otherwise, -1 is returned if bp references invalid pages.CONTEXTThe bp_copyin() function can be called from user or kernel context only.SEE ALSObp_copyout(9F), bp_mapin(9F), bp_mapout(9F), ddi_copyout(9F), buf(9S) SunOS 5.11 16 Oct 2007 bp_copyin(9F)