1*e13b1fa5SApple OSS Distributions<h2>vm_machine_attribute</h2> 2*e13b1fa5SApple OSS Distributions<hr> 3*e13b1fa5SApple OSS Distributions<p> 4*e13b1fa5SApple OSS Distributions<strong>Function</strong> - Get/set the target memory region's special attributes. 5*e13b1fa5SApple OSS Distributions<h3>SYNOPSIS</h3> 6*e13b1fa5SApple OSS Distributions<pre> 7*e13b1fa5SApple OSS Distributions<strong>kern_return_t vm_machine_attribute</strong> 8*e13b1fa5SApple OSS Distributions <strong>(vm_task_t</strong> <var>target_task</var>, 9*e13b1fa5SApple OSS Distributions <strong>vm_address_t</strong> <var>address</var>, 10*e13b1fa5SApple OSS Distributions <strong>vm_size_t</strong> <var>size</var>, 11*e13b1fa5SApple OSS Distributions <strong>vm_machine_attribute_t</strong> <var>attribute</var>, 12*e13b1fa5SApple OSS Distributions <strong>vm_machine_attribute_val_t</strong> <var>value</var><strong>);</strong> 13*e13b1fa5SApple OSS Distributions</pre> 14*e13b1fa5SApple OSS Distributions<h3>PARAMETERS</h3> 15*e13b1fa5SApple OSS Distributions<dl> 16*e13b1fa5SApple OSS Distributions<p> 17*e13b1fa5SApple OSS Distributions<dt> <var>target_task</var> 18*e13b1fa5SApple OSS Distributions<dd> 19*e13b1fa5SApple OSS Distributions[in task send right] 20*e13b1fa5SApple OSS DistributionsThe port for the task in whose address space the 21*e13b1fa5SApple OSS Distributionsmemory object is to be manipulated. 22*e13b1fa5SApple OSS Distributions<p> 23*e13b1fa5SApple OSS Distributions<dt> <var>address</var> 24*e13b1fa5SApple OSS Distributions<dd> 25*e13b1fa5SApple OSS Distributions[in scalar] 26*e13b1fa5SApple OSS DistributionsThe starting address for the memory region. The granularity 27*e13b1fa5SApple OSS Distributionsof rounding of this value to page boundaries is implementation 28*e13b1fa5SApple OSS Distributionsdependent. 29*e13b1fa5SApple OSS Distributions<p> 30*e13b1fa5SApple OSS Distributions<dt> <var>size</var> 31*e13b1fa5SApple OSS Distributions<dd> 32*e13b1fa5SApple OSS Distributions[in scalar] 33*e13b1fa5SApple OSS DistributionsThe number of bytes in the region. The granularity of 34*e13b1fa5SApple OSS Distributionsrounding of this value to page boundaries is implementation dependent. 35*e13b1fa5SApple OSS Distributions<p> 36*e13b1fa5SApple OSS Distributions<dt> <var>attribute</var> 37*e13b1fa5SApple OSS Distributions<dd> 38*e13b1fa5SApple OSS Distributions[in scalar] 39*e13b1fa5SApple OSS DistributionsThe name of the attribute to be get/set. Possible values are: 40*e13b1fa5SApple OSS Distributions<dl> 41*e13b1fa5SApple OSS Distributions<p> 42*e13b1fa5SApple OSS Distributions<dt> <strong>MATTR_CACHE</strong> 43*e13b1fa5SApple OSS Distributions<dd> 44*e13b1fa5SApple OSS DistributionsCachability. Aside from the generic values listed below, the 45*e13b1fa5SApple OSS Distributionsfollowing special values are defined: 46*e13b1fa5SApple OSS Distributions<dl> 47*e13b1fa5SApple OSS Distributions<p> 48*e13b1fa5SApple OSS Distributions<dt> <strong>MATTR_VAL_CACHE_FLUSH</strong> 49*e13b1fa5SApple OSS Distributions<dd> 50*e13b1fa5SApple OSS DistributionsFlush from all caches 51*e13b1fa5SApple OSS Distributions<p> 52*e13b1fa5SApple OSS Distributions<dt> <strong>MATTR_VAL_DCACHE_FLUSH</strong> 53*e13b1fa5SApple OSS Distributions<dd> 54*e13b1fa5SApple OSS DistributionsFlush from data caches 55*e13b1fa5SApple OSS Distributions<p> 56*e13b1fa5SApple OSS Distributions<dt> <strong>MATTR_VAL_ICACHE_FLUSH</strong> 57*e13b1fa5SApple OSS Distributions<dd> 58*e13b1fa5SApple OSS DistributionsFlush from instruction caches 59*e13b1fa5SApple OSS Distributions</dl> 60*e13b1fa5SApple OSS Distributions<p> 61*e13b1fa5SApple OSS Distributions<dt> <strong>MATTR_MIGRATE</strong> 62*e13b1fa5SApple OSS Distributions<dd> 63*e13b1fa5SApple OSS DistributionsMigratability. 64*e13b1fa5SApple OSS Distributions<p> 65*e13b1fa5SApple OSS Distributions<dt> <strong>MATTR_REPLICATE</strong> 66*e13b1fa5SApple OSS Distributions<dd> 67*e13b1fa5SApple OSS DistributionsReplicability. 68*e13b1fa5SApple OSS Distributions</dl> 69*e13b1fa5SApple OSS Distributions<p> 70*e13b1fa5SApple OSS Distributions<dt> <var>value</var> 71*e13b1fa5SApple OSS Distributions<dd> 72*e13b1fa5SApple OSS Distributions[pointer to in/out scalar] 73*e13b1fa5SApple OSS DistributionsThe new value for the attribute. The old value 74*e13b1fa5SApple OSS Distributionsis also returned in this variable. The new value can be a specific value 75*e13b1fa5SApple OSS Distributionslisted above, or one of the following generic values: 76*e13b1fa5SApple OSS Distributions<dl> 77*e13b1fa5SApple OSS Distributions<p> 78*e13b1fa5SApple OSS Distributions<dt> <strong>MATTR_VAL_OFF</strong> 79*e13b1fa5SApple OSS Distributions<dd> 80*e13b1fa5SApple OSS DistributionsTurn attribute off. 81*e13b1fa5SApple OSS Distributions<p> 82*e13b1fa5SApple OSS Distributions<dt> <strong>MATTR_VAL_ON</strong> 83*e13b1fa5SApple OSS Distributions<dd> 84*e13b1fa5SApple OSS DistributionsTurn attribute on. 85*e13b1fa5SApple OSS Distributions<p> 86*e13b1fa5SApple OSS Distributions<dt> <strong>MATTR_VAL_GET</strong> 87*e13b1fa5SApple OSS Distributions<dd> 88*e13b1fa5SApple OSS DistributionsNo change, just return current value. 89*e13b1fa5SApple OSS Distributions</dl> 90*e13b1fa5SApple OSS Distributions</dl> 91*e13b1fa5SApple OSS Distributions<h3>DESCRIPTION</h3> 92*e13b1fa5SApple OSS Distributions<p> 93*e13b1fa5SApple OSS DistributionsThe <strong>vm_machine_attribute</strong> function gets and sets special 94*e13b1fa5SApple OSS Distributionsattributes of the 95*e13b1fa5SApple OSS Distributionsmemory region implemented by the underlying <strong>pmap</strong> module. These attributes 96*e13b1fa5SApple OSS Distributionsare properties such as cachability, migratability and replicability. 97*e13b1fa5SApple OSS DistributionsThe behavior of this function is machine dependent. 98*e13b1fa5SApple OSS Distributions<h3>NOTES</h3> 99*e13b1fa5SApple OSS Distributions<p> 100*e13b1fa5SApple OSS DistributionsThis interface is machine word length specific because of the virtual address 101*e13b1fa5SApple OSS Distributionsparameter. 102*e13b1fa5SApple OSS Distributions<h3>RETURN VALUES</h3> 103*e13b1fa5SApple OSS Distributions<dl> 104*e13b1fa5SApple OSS Distributions<p> 105*e13b1fa5SApple OSS Distributions<dt> <strong>KERN_INVALID_ADDRESS</strong> 106*e13b1fa5SApple OSS Distributions<dd> 107*e13b1fa5SApple OSS DistributionsThe address is illegal or specifies a non-allocated region. 108*e13b1fa5SApple OSS Distributions</dl> 109*e13b1fa5SApple OSS Distributions<h3>RELATED INFORMATION</h3> 110*e13b1fa5SApple OSS Distributions<p> 111*e13b1fa5SApple OSS DistributionsFunctions: 112*e13b1fa5SApple OSS Distributions<a href="vm_wire.html"><strong>vm_wire</strong></a>. 113