copy_to_phys(9r)copy_to_phys(9r)NAMEcopy_to_phys - General: Copies data from a virtual address to a physi‐
cal address
SYNOPSIS
void copy_to_phys(
vm_offset_t virt_src,
vm_offset_t phys_dest,
unsigned int bcount );
ARGUMENTS
Specifies the virtual address of the data to be copied. Specifies the
physical address to copy the data to. Specifies the number of bytes to
copy.
DESCRIPTION
The copy_to_phys routine copies a specified amount of virtually
addressed memory to physically addressed memory. The addresses reside
only in system memory space and not in the memory space on I/O buses.
CAUTIONS
If any overlap exists between virt_src and phys_dest, the copy_to_phys
routine panics.
RETURN VALUES
None
SEE ALSO
Routines: copyin(9r), copyout(9r), io_copyin(9r), io_copyio(9r),
io_copyout(9r)copy_to_phys(9r)