DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SCO OpenServer

bcopy(D3oddi)


bcopy -- copy bytes in kernel space

Synopsis

#include <sys/types.h>

void bcopy(caddr_t src, caddr_t dst, int cnt);

Description

bcopy( ) copies the specified number of bytes from one address to another within kernel space. Do not use bcopy( ) to move data to user address space.

Arguments


src
Source kernel address from which to copy.

dst
Destination kernel address to which to copy.

cnt
Number of bytes to copy.

Return values

None

Usage

bcopy( ) is not allowed to fault, so if it is used to move data between kernel space and user space and it receives an invalid address, the system will panic. To move data from kernel space to user space, use the copyin(D3oddi), copyio(D3oddi), or copyout(D3oddi) functions instead.

Context and synchronization

All contexts.

Hardware applicability

Version applicability

oddi: 2, 2mp, 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp

SVR5 DDI compatibility

The bcopy(D3) function is supported for DDI drivers. Note that the DDI version casts the third argument as a size_t rather than an int.

References

bcopy(D3), copyin(D3oddi), copyio(D3oddi), copyout(D3oddi), fubyte(D3oddi), fuword(D3oddi), subyte(D3oddi), suword(D3oddi)

``ODDI driver interface version for SCO OpenServer 5'' in HDK Technical Reference


19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 5 HDK - June 2005