memory_object_get_attributes
Function - Return current attributes for a memory object.
SYNOPSIS
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);
PARAMETERS
- 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).
DESCRIPTION
The memory_object_get_attributes function retrieves
the current attributes for
the specified memory object.
RETURN VALUES
Only generic errors apply.
RELATED INFORMATION
Functions:
memory_object_change_attributes.
Data Structures:
memory_object_perf_info,
memory_object_attr_info.