1 <h2>memory_object_change_attributes
</h2>
4 <strong>Function
</strong> - Modify caller-specified subset of attributes representing target memory object.
7 <strong>kern_return_t memory_object_change_attributes
</strong>
8 <strong>(memory_object_control_t
</strong> <var>memory_control
</var>,
9 <strong>memory_object_flavor_t
</strong> <var>flavor
</var>,
10 <strong>memory_object_info_t
</strong> <var>attributes
</var>,
11 <strong>attributes
</strong> <var>attributes_count
</var>,
12 <strong>mach_port_t
</strong> <var>reply_to
</var><strong>);
</strong>
17 <dt> <var>memory_control
</var>
19 [in memory-cache-control send right]
20 The memory cache control port
21 to be used by the memory manager for cache management requests.
22 This port is provided by the kernel in a
<strong>memory_object_init
</strong>
23 or
<strong>memory_object_create
</strong> call.
25 <dt> <var>flavor
</var>
28 The type of information to be changed. Valid values are:
31 <dt> <strong>MEMORY_OBJECT_PERFORMANCE_INFO
</strong>
33 Performance related attributes such as the cache indicator and
34 the cluster size.
<var>attributes
</var> should specify a structure of type
35 <strong>memory_object_perf_info
</strong>.
37 <dt> <strong>MEMORY_OBJECT_BEHAVIOR_INFO
</strong>
39 Behavior related attributes such as the copy strategy and sync
40 invalidate flag.
<var>attributes
</var> should specify a structure of type
41 <strong>memory_object_behavior_info
</strong>.
43 <dt> <strong>MEMORY_OBJECT_ATTRIBUTES_INFO
</strong>
45 Behavior and performance related attributes such as the copy strategy,
46 cache indicator, and cluster size.
<var>attributes
</var> should specify a structure of type
47 <strong>memory_object_attr_info
</strong>.
50 <dt> <var>attributes
</var>
52 [pointer to in structure]
55 <dt> <var>attributes_count
</var>
58 The size of the buffer (in natural-sized units).
60 <dt> <var>reply_port
</var>
62 [in reply receive (to be converted to send) right]
64 reply (
<strong>memory_object_change_completed
</strong>) is to be sent indicating the
65 completion of the attribute change. Such a reply would be useful if the
66 cache attribute is turned off, since such a change, if the memory object
67 is no longer mapped, may result in the object being terminated.
71 The
<strong>memory_object_change_attributes
</strong> function sets various
73 specified memory object.
74 <h3>RETURN VALUES
</h3>
76 Only generic errors apply.
77 <h3>RELATED INFORMATION
</h3>
80 <a href=
"MO_change_completed.html"><strong>memory_object_change_completed
</strong></a>,
81 <a href=
"MO_get_attributes.html"><strong>memory_object_get_attributes
</strong></a>,
82 <a href=
"memory_object_create.html"><strong>memory_object_create
</strong></a>.
85 <a href=
"memory_object_perf_info.html"><strong>memory_object_perf_info
</strong></a>,
86 <a href=
"memory_object_attr_info.html"><strong>memory_object_attr_info
</strong></a>.