1 <h2>memory_object_get_attributes
</h2>
4 <strong>Function
</strong> - Return current attributes for a memory object.
7 <strong>kern_return_t memory_object_get_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>mach_msg_type_number_t
</strong> <var>attributes_count
</var><strong>);
</strong>
16 <dt> <var>memory_control
</var>
18 [in memory-cache-control send right]
19 The memory cache control port
20 to be used by the memory manager for cache management requests.
21 This port is provided by the kernel in a
<strong>memory_object_notify
</strong> call.
23 <dt> <var>flavor
</var>
26 The type of information to be returned. Valid values are:
29 <dt> <strong>MEMORY_OBJECT_PERFORMANCE_INFO
</strong>
31 Performance related attributes such as the cache indicator and
32 the cluster size.
<var>attributes
</var> should specify a structure of type
33 <strong>memory_object_perf_info
</strong>.
35 <dt> <strong>MEMORY_OBJECT_BEHAVIOR_INFO
</strong>
37 Behavior related attributes such as the copy strategy and sync
38 invalidate flag.
<var>attributes
</var> should specify a structure of type
39 <strong>memory_object_behavior_info
</strong>.
40 <dt> <strong>MEMORY_OBJECT_ATTRIBUTES_INFO
</strong>
42 Behavior and performance related attributes such as the copy strategy,
43 cache indicator, and cluster size.
<var>attributes
</var> should specify a structure of type
44 <strong>memory_object_attr_info
</strong>.
47 <dt> <var>attributes
</var>
52 <dt> <var>attributes_count
</var>
55 On input, the maximum size of the buffer; on output, the
56 size returned (in natural-sized units).
60 The
<strong>memory_object_get_attributes
</strong> function retrieves
61 the current attributes for
62 the specified memory object.
63 <h3>RETURN VALUES
</h3>
65 Only generic errors apply.
66 <h3>RELATED INFORMATION
</h3>
69 <a href=
"MO_change_attributes.html"><strong>memory_object_change_attributes
</strong></a>.
72 <a href=
"memory_object_perf_info.html"><strong>memory_object_perf_info
</strong></a>,
73 <a href=
"memory_object_attr_info.html"><strong>memory_object_attr_info
</strong></a>.