Function - Read the specified range of target task's address space.
[in task send right]
The port for the task whose memory is to be read.
The address at which to start the read.
The number of bytes to read.
Out-pointer to dynamic array of bytes returned by the read.
In-pointer to array of bytes that will be overwritten with the data returned by the read.
On input, the maximum size of the buffer; on output, the
size returned (in natural-sized units).
The vm_read and vm_read_overwrite
functions read a portion of a task's virtual
memory (they enable tasks to read other tasks' memory).
The vm_read function returns the data in a dynamically
allocated array of bytes; the vm_read_overwrite function
places the data into a caller-specified buffer (the data_in
This interface is machine word length specific because of the virtual address
Specified memory is valid, but does not permit reading.
The address is illegal or specifies a non-allocated region, or there are
less than size bytes of data following the address, or the region
specified by the data_in parameter cannot be written to.