memory_object_attr_info.html   [plain text]

<strong>Structure</strong> - Specifies memory object's behavior attributes.
<strong>struct  memory_object_attr_info</strong>
        <strong>memory_object_copy_strategy_t</strong>    <var>copy_strategy</var><strong>;</strong>
        <strong>vm_offset_t</strong>                       <var>cluster_size</var><strong>;</strong>
        <strong>boolean_t</strong>                            <var>may_cache</var><strong>;</strong>
        <strong>boolean_t</strong>                            <var>temporary</var><strong>;</strong>

<strong>typedef struct memory_object_attr_info* memory_object_attr_info_t;</strong>
<dt> <var>copy_strategy</var>
How the kernel should handle copying of regions associated with the 
memory object.  The copy strategy cannot be changed once an object is 
initialized.  Valid values are:
<dt> <strong>MEMORY_OBJECT_COPY_NONE</strong>
Use normal procedure when copying the memory object's 
data.  Normally, the kernel requests each page with read
access, copies the data, and then (optionally) flushes the data.
<dt> <strong>MEMORY_OBJECT_COPY_CALL</strong>
Call the memory manager when a copy operation is necessary.
<dt> <strong>MEMORY_OBJECT_COPY_DELAY</strong>
Use copy-on-write technique.  This strategy allows the kernel 
to efficiently copy large amounts of data and guarantees that 
the memory manager will not externally modify the data.  It is 
the most commonly used copy strategy.
<dt> <strong>MEMORY_OBJECT_COPY_TEMPORARY</strong>
All changes are made in memory and the memory manager does not need
to see them.
<dt> <strong>MEMORY_OBJECT_COPY_SYMMETRIC</strong>
The memory manager does not change the data, does not need to see
any changes to the data, and will prevent the object from being
mapped more than once.  Currently, this strategy should be restricted
to use by the kernel.
<dt> <var>cluster_size</var>
The memory object's perferred cluster size (in bytes).  This value may affect
the number of pages transferred in a given paging operation.
<dt> <var>may_cache</var>
Cache indicator.  If true, the kernel can cache data associated with the 
memory object (keep the memory object active) even if no virtual 
memory references to it remain.
<dt> <var>temporary</var>
If TRUE, when the last mapping to the object is released,
the kernel destroys the object without returning any resident pages.
The <strong>memory_object_attr_info</strong> structure defines behavior and
performance relevant memory object attributes.
<a href="MO_get_attributes.html"><strong>memory_object_get_attributes</strong></a>,
<a href="MO_change_attributes.html"><strong>memory_object_change_attributes</strong></a>,
<a href="vm_region.html"><strong>vm_region</strong></a>,
<a href="memory_object_synchronize.html"><strong>memory_object_synchronize</strong></a>,
<a href="VSD_memory_manager.html"><strong>vm_set_default_memory_manager</strong></a>,
<a href="vm_msync.html"><strong>vm_msync</strong></a>.