Function - Copy a region of virtual memory.
[in task send right]
The port for the task whose memory is to be copied.
The starting address for the source region. The address must
be on a page boundary.
The number of bytes in the source region. The number of
bytes must convert to an integral number of virtual pages.
The starting address for the destination region. The address
must be on a page boundary.
The vm_copy function copies a source region to a destination
region within the
same task's virtual memory. It is semantically equivalent to
by vm_write. The destination region can overlap the source region.
The destination region must already be allocated. The source region must be
readable, and the destination region must be writable.
This interface is machine word length specific because of the virtual address
The source region is protected against reading, or the destination
region is protected against writing.
An address is illegal or specifies a non-allocated region, or there is not
enough memory following one of the addresses.