Name | Synopsis | Interface Level | Parameters | Description | Return Values | Context | See Also
#include <sys/types.h> #include <sys/buf.h> int bp_copyout(void *driverbuf, struct buf *bp, offset_t offset, size_t size);
Architecture independent level 1 (DDI/DKI).
Pointer to the buffer header structure to copy to.
Driver buffer to copy from.
Offset into bp where to start copying.
Size of copy.
The bp_copyout() 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.
Under normal conditions, 0 is returned to indicate a successful copy. Otherwise, -1 is returned if bp references invalid pages.
The bp_copyout() function can be called from user or kernel context only.
Name | Synopsis | Interface Level | Parameters | Description | Return Values | Context | See Also