Back to Darwin Xnu

Vm Region Basic Info

osfmk/man/vm_region_basic_info.html

latest1.5 KB
Original Source

vm_region_basic_info


Structure - Defines the attributes of a task's memory region.

SYNOPSIS

**struct vm\_region\_basic\_info**** { ****vm\_prot\_t** protection **;**** vm\_prot\_t **max\_protection** ; ****vm\_inherit\_t** inheritance **;**** boolean\_t **shared** ; ****boolean\_t** reserved **;**** vm\_offset\_t **offset** ; ****vm\_behavior\_t** behavior **;**** unsigned short **user\_wired\_count** ; ****};**** typedef struct vm\_region\_basic\_info\* vm\_region\_basic\_info\_t;**

FIELDS

protectionThe current protection for the region.

max_protectionThe maximum protection allowed for the region.

inheritanceThe inheritance attribute for the region.

sharedShared indicator. If true, the region is shared by another task. If false, the region is not shared.

reservedIf true the region is protected from random allocation.

offsetThe region's offset into the memory object. The region begins at this offset.

behaviorExpected reference pattern for the memory. Valid values are:

VM_BEHAVIOR_DEFAULT The system's default behavior.

VM_BEHAVIOR_RANDOM No particular order expected.

VM_BEHAVIOR_SEQUENTIAL Forward sequential order.

VM_BEHAVIOR_RSEQNTL Reverse sequential order.

DESCRIPTION

The vm_region_basic_info structure defines the attributes of a memory region returned by vm_region.

Functions: vm_region, vm_inherit, vm_protect.