osfmk/man/MO_get_attributes.html
Function - Return current attributes for a memory object.
**kern\_return\_t memory\_object\_get\_attributes**** (memory\_object\_control\_t **memory\_control,** memory\_object\_flavor\_t **flavor,** memory\_object\_info\_t **attributes,** mach\_msg\_type\_number\_t **attributes\_count** );**
memory_control[in memory-cache-control send right] The memory cache control port to be used by the memory manager for cache management requests. This port is provided by the kernel in a memory_object_notify call.
flavor[in scalar] The type of information to be returned. Valid values are:
MEMORY_OBJECT_PERFORMANCE_INFO Performance related attributes such as the cache indicator and the cluster size. attributes should specify a structure of type memory_object_perf_info.
MEMORY_OBJECT_BEHAVIOR_INFO Behavior related attributes such as the copy strategy and sync invalidate flag. attributes should specify a structure of type memory_object_behavior_info. MEMORY_OBJECT_ATTRIBUTES_INFO Behavior and performance related attributes such as the copy strategy, cache indicator, and cluster size. attributes should specify a structure of type memory_object_attr_info.
attributes[out structure] Current attributes.
attributes_count[in/out scalar] On input, the maximum size of the buffer; on output, the size returned (in natural-sized units).
The memory_object_get_attributes function retrieves the current attributes for the specified memory object.
Only generic errors apply.
Functions: memory_object_change_attributes.
Data Structures: memory_object_perf_info, memory_object_attr_info.