1 <h2>vm_machine_attribute
</h2>
4 <strong>Function
</strong> - Get/set the target memory region's special attributes.
7 <strong>kern_return_t vm_machine_attribute
</strong>
8 <strong>(vm_task_t
</strong> <var>target_task
</var>,
9 <strong>vm_address_t
</strong> <var>address
</var>,
10 <strong>vm_size_t
</strong> <var>size
</var>,
11 <strong>vm_machine_attribute_t
</strong> <var>attribute
</var>,
12 <strong>vm_machine_attribute_val_t
</strong> <var>value
</var><strong>);
</strong>
17 <dt> <var>target_task
</var>
20 The port for the task in whose address space the
21 memory object is to be manipulated.
23 <dt> <var>address
</var>
26 The starting address for the memory region. The granularity
27 of rounding of this value to page boundaries is implementation
33 The number of bytes in the region. The granularity of
34 rounding of this value to page boundaries is implementation dependent.
36 <dt> <var>attribute
</var>
39 The name of the attribute to be get/set. Possible values are:
42 <dt> <strong>MATTR_CACHE
</strong>
44 Cachability. Aside from the generic values listed below, the
45 following special values are defined:
48 <dt> <strong>MATTR_VAL_CACHE_FLUSH
</strong>
52 <dt> <strong>MATTR_VAL_DCACHE_FLUSH
</strong>
54 Flush from data caches
56 <dt> <strong>MATTR_VAL_ICACHE_FLUSH
</strong>
58 Flush from instruction caches
61 <dt> <strong>MATTR_MIGRATE
</strong>
65 <dt> <strong>MATTR_REPLICATE
</strong>
72 [pointer to in/out scalar]
73 The new value for the attribute. The old value
74 is also returned in this variable. The new value can be a specific value
75 listed above, or one of the following generic values:
78 <dt> <strong>MATTR_VAL_OFF
</strong>
82 <dt> <strong>MATTR_VAL_ON
</strong>
86 <dt> <strong>MATTR_VAL_GET
</strong>
88 No change, just return current value.
93 The
<strong>vm_machine_attribute
</strong> function gets and sets special
95 memory region implemented by the underlying
<strong>pmap
</strong> module. These attributes
96 are properties such as cachability, migratability and replicability.
97 The behavior of this function is machine dependent.
100 This interface is machine word length specific because of the virtual address
102 <h3>RETURN VALUES
</h3>
105 <dt> <strong>KERN_INVALID_ADDRESS
</strong>
107 The address is illegal or specifies a non-allocated region.
109 <h3>RELATED INFORMATION
</h3>
112 <a href=
"vm_wire.html"><strong>vm_wire
</strong></a>.