1 <h2>host_statistics
</h2>
4 <strong>Function
</strong> - Return statistics for a host.
<h3>SYNOPSIS
</h3>
6 <strong>kern_return_t host_statistics
</strong>
7 <strong>(host_priv_t
</strong> <var>host_priv
</var>,
8 <strong>host_flavor_t
</strong> <var>flavor
</var>,
9 <strong>host_info_t
</strong> <var>host_info
</var>,
10 <strong>mach_msg_type_number_t
</strong> <var>host_info_count
</var><strong>);
</strong>
15 <dt> <var>host_priv
</var>
17 [in host-control send right]
18 The control port for the host for which
19 information is to be obtained.
21 <dt> <var>flavor
</var>
24 The type of statistics desired.
27 <dt> <strong>HOST_LOAD_INFO
</strong>
29 System loading statistics. The returned structure is
30 <strong>host_load_info
</strong>.
32 <dt> <strong>HOST_VM_INFO
</strong>
34 Virtual memory statistics. The returned structure is
35 <strong>vm_statistics
</strong>.
38 <dt> <var>host_info
</var>
41 Statistics about the specified host.
43 <dt> <var>host_info_count
</var>
46 On input, the maximum size of the buffer; on output, the
47 size returned (in natural-sized units).
51 The
<strong>host_statistics
</strong> function returns scheduling and
52 virtual memory statistics
53 concerning the host as specified by
<var>flavor
</var>.
54 <h3>RETURN VALUES
</h3>
56 Only generic errors apply.
57 <h3>RELATED INFORMATION
</h3>
60 <a href=
"host_info.html"><strong>host_info
</strong></a>,
61 <a href=
"processor_set_statistics.html"><strong>processor_set_statistics
</strong></a>.
64 <a href=
"host_load_info.html"><strong>host_load_info
</strong></a>,
65 <a href=
"vm_statistics.html"><strong>vm_statistics
</strong></a>.