transfer data from a user address to contiguous memory
void db_write(struct devbuf *dv, paddr_t va, unsigned count);
db_write transfers data
from a virtual user address to physical contiguous memory
that was previously allocated with the
Pointer to a devbuf structure allocated with the
Virtual user address from which to transfer data.
Amount of data, in bytes, to be transferred.
Only use this routine after the requested pages
are locked into memory by a previous call to the
under any other circumstances results in a panic.
Context and synchronization
Differences between versions
Current drivers that allocate memory with the
function can use the
function to transfer the data.
SVR5 DDI compatibility
This function is not supported in DDI.
Rewrite the driver to use a different memory allocation scheme,
then use the
function to move the data.
The following example illustrates how to transfer data
from a buffer
to physically contiguous memory
pointed to by dv:
struct buf *bp;
struct devbuf dv;
db_write( &dv, paddr(bp), bp->b_count );
``Memory allocation'' in HDK Technical Reference
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 5 HDK - June 2005