Function - Return description of a virtual memory region.
kern_return_t vm_region
(vm_task_t target_task,
vm_address_t address,
vm_size_t size,
vm_region_flavor_t flavor,
vm_region_info_t info,
mach_msg_type_number_t info_count,
memory_object_name_t object_name);
The vm_region function returns information on a region within the specified task's address space. The function begins looking at address and continues until it finds an allocated region. If the input address is within a region, the function uses the start of that region. The starting address for the located region is returned in address.
This interface is machine word length specific because of the virtual address parameter.
Functions: vm_allocate, vm_deallocate, vm_inherit, vm_protect, vm_behavior_set.
Data Structures: vm_region_basic_info.