1*0f4c859eSApple OSS Distributions<h2>memory_object_attr_info</h2> 2*0f4c859eSApple OSS Distributions<hr> 3*0f4c859eSApple OSS Distributions<p> 4*0f4c859eSApple OSS Distributions<strong>Structure</strong> - Specifies memory object's behavior attributes. 5*0f4c859eSApple OSS Distributions<h3>SYNOPSIS</h3> 6*0f4c859eSApple OSS Distributions<pre> 7*0f4c859eSApple OSS Distributions<strong>struct memory_object_attr_info</strong> 8*0f4c859eSApple OSS Distributions<strong>{</strong> 9*0f4c859eSApple OSS Distributions <strong>memory_object_copy_strategy_t</strong> <var>copy_strategy</var><strong>;</strong> 10*0f4c859eSApple OSS Distributions <strong>vm_offset_t</strong> <var>cluster_size</var><strong>;</strong> 11*0f4c859eSApple OSS Distributions <strong>boolean_t</strong> <var>may_cache</var><strong>;</strong> 12*0f4c859eSApple OSS Distributions <strong>boolean_t</strong> <var>temporary</var><strong>;</strong> 13*0f4c859eSApple OSS Distributions<strong>};</strong> 14*0f4c859eSApple OSS Distributions 15*0f4c859eSApple OSS Distributions<strong>typedef struct memory_object_attr_info* memory_object_attr_info_t;</strong> 16*0f4c859eSApple OSS Distributions</pre> 17*0f4c859eSApple OSS Distributions<h3>FIELDS</h3> 18*0f4c859eSApple OSS Distributions<dl> 19*0f4c859eSApple OSS Distributions<dt> <var>copy_strategy</var> 20*0f4c859eSApple OSS Distributions<dd> 21*0f4c859eSApple OSS DistributionsHow the kernel should handle copying of regions associated with the 22*0f4c859eSApple OSS Distributionsmemory object. The copy strategy cannot be changed once an object is 23*0f4c859eSApple OSS Distributionsinitialized. Valid values are: 24*0f4c859eSApple OSS Distributions<dl> 25*0f4c859eSApple OSS Distributions<p> 26*0f4c859eSApple OSS Distributions<dt> <strong>MEMORY_OBJECT_COPY_NONE</strong> 27*0f4c859eSApple OSS Distributions<dd> 28*0f4c859eSApple OSS DistributionsUse normal procedure when copying the memory object's 29*0f4c859eSApple OSS Distributionsdata. Normally, the kernel requests each page with read 30*0f4c859eSApple OSS Distributionsaccess, copies the data, and then (optionally) flushes the data. 31*0f4c859eSApple OSS Distributions<p> 32*0f4c859eSApple OSS Distributions<dt> <strong>MEMORY_OBJECT_COPY_CALL</strong> 33*0f4c859eSApple OSS Distributions<dd> 34*0f4c859eSApple OSS DistributionsCall the memory manager when a copy operation is necessary. 35*0f4c859eSApple OSS Distributions<p> 36*0f4c859eSApple OSS Distributions<dt> <strong>MEMORY_OBJECT_COPY_DELAY</strong> 37*0f4c859eSApple OSS Distributions<dd> 38*0f4c859eSApple OSS DistributionsUse copy-on-write technique. This strategy allows the kernel 39*0f4c859eSApple OSS Distributionsto efficiently copy large amounts of data and guarantees that 40*0f4c859eSApple OSS Distributionsthe memory manager will not externally modify the data. It is 41*0f4c859eSApple OSS Distributionsthe most commonly used copy strategy. 42*0f4c859eSApple OSS Distributions<p> 43*0f4c859eSApple OSS Distributions<dt> <strong>MEMORY_OBJECT_COPY_TEMPORARY</strong> 44*0f4c859eSApple OSS Distributions<dd> 45*0f4c859eSApple OSS DistributionsAll changes are made in memory and the memory manager does not need 46*0f4c859eSApple OSS Distributionsto see them. 47*0f4c859eSApple OSS Distributions<p> 48*0f4c859eSApple OSS Distributions<dt> <strong>MEMORY_OBJECT_COPY_SYMMETRIC</strong> 49*0f4c859eSApple OSS Distributions<dd> 50*0f4c859eSApple OSS DistributionsThe memory manager does not change the data, does not need to see 51*0f4c859eSApple OSS Distributionsany changes to the data, and will prevent the object from being 52*0f4c859eSApple OSS Distributionsmapped more than once. Currently, this strategy should be restricted 53*0f4c859eSApple OSS Distributionsto use by the kernel. 54*0f4c859eSApple OSS Distributions</dl> 55*0f4c859eSApple OSS Distributions<p> 56*0f4c859eSApple OSS Distributions<dt> <var>cluster_size</var> 57*0f4c859eSApple OSS Distributions<dd> 58*0f4c859eSApple OSS DistributionsThe memory object's perferred cluster size (in bytes). This value may affect 59*0f4c859eSApple OSS Distributionsthe number of pages transferred in a given paging operation. 60*0f4c859eSApple OSS Distributions<p> 61*0f4c859eSApple OSS Distributions<dt> <var>may_cache</var> 62*0f4c859eSApple OSS Distributions<dd> 63*0f4c859eSApple OSS DistributionsCache indicator. If true, the kernel can cache data associated with the 64*0f4c859eSApple OSS Distributionsmemory object (keep the memory object active) even if no virtual 65*0f4c859eSApple OSS Distributionsmemory references to it remain. 66*0f4c859eSApple OSS Distributions<p> 67*0f4c859eSApple OSS Distributions<dt> <var>temporary</var> 68*0f4c859eSApple OSS Distributions<dd> 69*0f4c859eSApple OSS DistributionsIf TRUE, when the last mapping to the object is released, 70*0f4c859eSApple OSS Distributionsthe kernel destroys the object without returning any resident pages. 71*0f4c859eSApple OSS Distributions</dl> 72*0f4c859eSApple OSS Distributions<h3>DESCRIPTION</h3> 73*0f4c859eSApple OSS Distributions<p> 74*0f4c859eSApple OSS DistributionsThe <strong>memory_object_attr_info</strong> structure defines behavior and 75*0f4c859eSApple OSS Distributionsperformance relevant memory object attributes. 76*0f4c859eSApple OSS Distributions<h3>RELATED INFORMATION</h3> 77*0f4c859eSApple OSS Distributions<p> 78*0f4c859eSApple OSS DistributionsFunctions: 79*0f4c859eSApple OSS Distributions<a href="MO_get_attributes.html"><strong>memory_object_get_attributes</strong></a>, 80*0f4c859eSApple OSS Distributions<a href="MO_change_attributes.html"><strong>memory_object_change_attributes</strong></a>, 81*0f4c859eSApple OSS Distributions<a href="vm_region.html"><strong>vm_region</strong></a>, 82*0f4c859eSApple OSS Distributions<a href="memory_object_synchronize.html"><strong>memory_object_synchronize</strong></a>, 83*0f4c859eSApple OSS Distributions<a href="VSD_memory_manager.html"><strong>vm_set_default_memory_manager</strong></a>, 84*0f4c859eSApple OSS Distributions<a href="vm_msync.html"><strong>vm_msync</strong></a>. 85