]>
Commit | Line | Data |
---|---|---|
9bccf70c | 1 | <h2>memory_object_get_attributes</h2>\r<hr>\r<p>\r<strong>Function</strong> - Return current attributes for a memory object.\r<h3>SYNOPSIS</h3>\r<pre>\r<strong>kern_return_t memory_object_get_attributes</strong>\r <strong>(memory_object_control_t</strong> <var>memory_control</var>,\r <strong>memory_object_flavor_t</strong> <var>flavor</var>,\r <strong>memory_object_info_t</strong> <var>attributes</var>,\r <strong>mach_msg_type_number_t</strong> <var>attributes_count</var><strong>);</strong>\r</pre>\r<h3>PARAMETERS</h3>\r<dl>\r<p>\r<dt> <var>memory_control</var> \r<dd>\r[in memory-cache-control send right]\rThe memory cache control port \rto be used by the memory manager for cache management requests. \rThis port is provided by the kernel in a <strong>memory_object_notify</strong> call.\r<p>\r<dt> <var>flavor</var> \r<dd>\r[in scalar]\rThe type of information to be returned. Valid values are:\r<dl>\r<p>\r<dt> <strong>MEMORY_OBJECT_PERFORMANCE_INFO</strong>\r<dd>\rPerformance related attributes such as the cache indicator and \rthe cluster size. <var>attributes</var> should specify a structure of type \r<strong>memory_object_perf_info</strong>.\r<p>\r<dt> <strong>MEMORY_OBJECT_BEHAVIOR_INFO</strong>\r<dd>\rBehavior related attributes such as the copy strategy and sync \rinvalidate flag. <var>attributes</var> should specify a structure of type \r<strong>memory_object_behavior_info</strong>.\r <dt> <strong>MEMORY_OBJECT_ATTRIBUTES_INFO</strong>\r<dd>\rBehavior and performance related attributes such as the copy strategy,\rcache indicator, and cluster size. <var>attributes</var> should specify a structure of type \r<strong>memory_object_attr_info</strong>.\r</dl>\r<p>\r<dt> <var>attributes</var> \r<dd>\r[out structure]\rCurrent attributes.\r<p>\r<dt> <var>attributes_count</var> \r<dd>\r[in/out scalar]\rOn input, the maximum size of the buffer; on output, the \rsize returned (in natural-sized units).\r</dl>\r<h3>DESCRIPTION</h3>\r<p>\rThe <strong>memory_object_get_attributes</strong> function retrieves\rthe current attributes for \rthe specified memory object.\r<h3>RETURN VALUES</h3>\r<p>\rOnly generic errors apply.\r<h3>RELATED INFORMATION</h3>\r<p>\rFunctions:\r<a href="MO_change_attributes.html"><strong>memory_object_change_attributes</strong></a>.\r<p>\rData Structures:\r<a href="memory_object_perf_info.html"><strong>memory_object_perf_info</strong></a>,\r<a href="memory_object_attr_info.html"><strong>memory_object_attr_info</strong></a>.\r |