host_statistics
Function - Return statistics for a host.
SYNOPSIS
kern_return_t host_statistics
(host_priv_t host_priv,
host_flavor_t flavor,
host_info_t host_info,
mach_msg_type_number_t host_info_count);
PARAMETERS
- host_priv
-
[in host-control send right]
The control port for the host for which
information is to be obtained.
- flavor
-
[in scalar]
The type of statistics desired.
- HOST_LOAD_INFO
-
System loading statistics. The returned structure is
host_load_info.
- HOST_VM_INFO
-
Virtual memory statistics. The returned structure is
vm_statistics.
- host_info
-
[out structure]
Statistics about the specified host.
- host_info_count
-
[in/out scalar]
On input, the maximum size of the buffer; on output, the
size returned (in natural-sized units).
DESCRIPTION
The host_statistics function returns scheduling and
virtual memory statistics
concerning the host as specified by flavor.
RETURN VALUES
Only generic errors apply.
RELATED INFORMATION
Functions:
host_info,
processor_set_statistics.
Data Structures:
host_load_info,
vm_statistics.