Function - Write data to the specified address in the target task's address space.
kern_return_t vm_write (vm_task_t target_task, vm_address_t address, pointer_t data, mach_msg_type_number_t data_count);
The vm_write function writes an array of data to a task's virtual memory. It allows one task to write to another task's memory.
The result of vm_write is as if target_task had directly written into the set of pages. Hence, target_task must have write permission to the pages.
This interface is machine word length specific because of the virtual address parameter.
Functions: vm_copy, vm_protect, vm_read, host_page_size.