Back to Darwin Xnu

Host Statistics

osfmk/man/host_statistics.html

latest1.2 KB
Original Source

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.

Functions: host_info, processor_set_statistics.

Data Structures: host_load_info, vm_statistics.