#include <mach/host_info.h> also included by
<mach/mach.h>mach/host_info.h
File: mach/host_info.h
Definitions for host_info call.
typedefhost_info_t
Generic information structure to allow for expansion.
typedef integer_t *host_info_t
varying array of int.
typedefhost_info_data_t
typedef integer_t host_info_data_t[HOST_INFO_MAX]
macroKERNEL_VERSION_MAX
#define KERNEL_VERSION_MAX (512)
typedefkernel_version_t
typedef char kernel_version_t[KERNEL_VERSION_MAX]
macroKERNEL_BOOT_INFO_MAX
#define KERNEL_BOOT_INFO_MAX (4096)
typedefkernel_boot_info_t
typedef char kernel_boot_info_t[KERNEL_BOOT_INFO_MAX]
typedefhost_flavor_t
Currently defined information.
host_info()
typedef integer_t host_flavor_t
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Defined values:
| HOST_BASIC_INFO | Basic information (number of processors, amount of memory). The returned structure is host_basic_info. |
| HOST_SCHED_INFO | Basic restrictions of the kernel's scheduling, minimum quantum and time-out value. The returned structure is host_sched_info. |
| HOST_RESOURCE_SIZES | This interface feature is not implemented in OSF/1 R1.3. Size of significant kernel structures, as a ledger would consider them when limiting kernel resource consumption. The returned structure is kernel_resource_sizes. |
| 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. |
macroHOST_BASIC_INFO
#define HOST_BASIC_INFO 1
basic info
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Basic information (number of processors, amount of memory). The returned structure is host_basic_info.
macroHOST_SCHED_INFO
#define HOST_SCHED_INFO 3
scheduling info
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Basic restrictions of the kernel's scheduling, minimum quantum and time-out value. The returned structure is host_sched_info.
macroHOST_RESOURCE_SIZES
#define HOST_RESOURCE_SIZES 4
kernel struct sizes
CMU/MIT Mach reference · manual page · © Carnegie Mellon
This interface feature is not implemented in OSF/1 R1.3. Size of significant kernel structures, as a ledger would consider them when limiting kernel resource consumption. The returned structure is kernel_resource_sizes.
macroHOST_DEBUG_INFO_INTERNAL
#define HOST_DEBUG_INFO_INTERNAL 10
Used for kernel internal development tests only
macroHOST_CAN_HAS_DEBUGGER
#define HOST_CAN_HAS_DEBUGGER 11
macroHOST_PREFERRED_USER_ARCH
#define HOST_PREFERRED_USER_ARCH 12
Get the preferred user-space architecture
structhost_can_has_debugger_info
| boolean_t | can_has_debugger |
typedefhost_can_has_debugger_info_data_t
typedef struct host_can_has_debugger_info host_can_has_debugger_info_data_t
typedefhost_can_has_debugger_info_t
typedef struct host_can_has_debugger_info *host_can_has_debugger_info_t
macroHOST_CAN_HAS_DEBUGGER_COUNT
#define HOST_CAN_HAS_DEBUGGER_COUNT ((mach_msg_type_number_t) (sizeof(host_can_has_debugger_info_data_t)/sizeof(integer_t)))
structhost_basic_info
| integer_t | max_cpus | max number of CPUs possible |
| integer_t | avail_cpus | number of CPUs now available |
| natural_t | memory_size | size of memory in bytes, capped at 2 GB |
| cpu_type_t | cpu_type | cpu type |
| cpu_subtype_t | cpu_subtype | cpu subtype |
| cpu_threadtype_t | cpu_threadtype | cpu threadtype |
| integer_t | physical_cpu | number of physical CPUs now available |
| integer_t | physical_cpu_max | max number of physical CPUs possible |
| integer_t | logical_cpu | number of logical cpu now available |
| integer_t | logical_cpu_max | max number of physical CPUs possible |
| uint64_t | max_mem | actual size of physical memory |
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Used to present basic information about a host.
The host_basic_info structure defines the basic information available about a host.
Notes. This structure is machine word length specific because of the memory size returned.
typedefhost_basic_info_data_t
typedef struct host_basic_info host_basic_info_data_t
typedefhost_basic_info_t
typedef struct host_basic_info *host_basic_info_t
macroHOST_BASIC_INFO_COUNT
#define HOST_BASIC_INFO_COUNT ((mach_msg_type_number_t) (sizeof(host_basic_info_data_t)/sizeof(integer_t)))
structhost_sched_info
| integer_t | min_timeout | minimum timeout in milliseconds |
| integer_t | min_quantum | minimum quantum in milliseconds |
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Used to present the set of scheduler limits associated with the host.
The host_sched_info structure defines the limiting scheduling information available about a host.
typedefhost_sched_info_data_t
typedef struct host_sched_info host_sched_info_data_t
typedefhost_sched_info_t
typedef struct host_sched_info *host_sched_info_t
macroHOST_SCHED_INFO_COUNT
#define HOST_SCHED_INFO_COUNT ((mach_msg_type_number_t) (sizeof(host_sched_info_data_t)/sizeof(integer_t)))
structkernel_resource_sizes
| natural_t | task | |
| natural_t | thread | |
| natural_t | port | |
| natural_t | memory_region | |
| natural_t | memory_object |
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Used to present the sizes of kernel's major structures.
The kernel_resource_sizes structure defines the sizes of significant kernel structures.
typedefkernel_resource_sizes_data_t
typedef struct kernel_resource_sizes kernel_resource_sizes_data_t
typedefkernel_resource_sizes_t
typedef struct kernel_resource_sizes *kernel_resource_sizes_t
macroHOST_RESOURCE_SIZES_COUNT
#define HOST_RESOURCE_SIZES_COUNT ((mach_msg_type_number_t) (sizeof(kernel_resource_sizes_data_t)/sizeof(integer_t)))
structhost_priority_info
| integer_t | kernel_priority | |
| integer_t | system_priority | |
| integer_t | server_priority | |
| integer_t | user_priority | |
| integer_t | depress_priority | |
| integer_t | idle_priority | |
| integer_t | minimum_priority | |
| integer_t | maximum_priority |
typedefhost_priority_info_data_t
typedef struct host_priority_info host_priority_info_data_t
typedefhost_priority_info_t
typedef struct host_priority_info *host_priority_info_t
macroHOST_PRIORITY_INFO_COUNT
#define HOST_PRIORITY_INFO_COUNT ((mach_msg_type_number_t) (sizeof(host_priority_info_data_t)/sizeof(integer_t)))
macroHOST_LOAD_INFO
#define HOST_LOAD_INFO 1
System loading stats
CMU/MIT Mach reference · manual page · © Carnegie Mellon
System loading statistics. The returned structure is host_load_info.
macroHOST_VM_INFO
#define HOST_VM_INFO 2
Virtual memory stats
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Virtual memory statistics. The returned structure is vm_statistics.
structhost_load_info
| integer_t[3] | avenrun | scaled by LOAD_SCALE |
| integer_t[3] | mach_factor | scaled by LOAD_SCALE |
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Used to present a host's processor load information.
The host_load_info structure defines the loading information available about a host. The information returned is exponential averages over three periods of time: 5, 30 and 60 seconds.
typedefhost_load_info_data_t
typedef struct host_load_info host_load_info_data_t
typedefhost_load_info_t
typedef struct host_load_info *host_load_info_t
macroHOST_LOAD_INFO_COUNT
#define HOST_LOAD_INFO_COUNT ((mach_msg_type_number_t) (sizeof(host_load_info_data_t)/sizeof(integer_t)))
typedefhost_purgable_info_data_t
typedef struct vm_purgeable_info host_purgable_info_data_t
typedefhost_purgable_info_t
typedef struct vm_purgeable_info *host_purgable_info_t
macroHOST_VM_PURGABLE_COUNT
#define HOST_VM_PURGABLE_COUNT ((mach_msg_type_number_t) (sizeof(host_purgable_info_data_t)/sizeof(integer_t)))
macroHOST_VM_INFO64_COUNT
in <mach/vm_statistics.h>
vm_statistics64
#define HOST_VM_INFO64_COUNT ((mach_msg_type_number_t) (sizeof(vm_statistics64_data_t)/sizeof(integer_t)))
macroHOST_VM_INFO64_LATEST_COUNT
size of the latest version of the structure
#define HOST_VM_INFO64_LATEST_COUNT HOST_VM_INFO64_COUNT
macroHOST_VM_INFO64_REV2_COUNT
#define HOST_VM_INFO64_REV2_COUNT HOST_VM_INFO64_COUNT
macroHOST_VM_INFO64_REV1_COUNT
#define HOST_VM_INFO64_REV1_COUNT ((mach_msg_type_number_t) (offsetof(vm_statistics64_data_t, swapped_count) / sizeof(integer_t)))
macroHOST_VM_INFO64_REV0_COUNT
previous versions: adjust the size according to what was added each time
#define HOST_VM_INFO64_REV0_COUNT ((mach_msg_type_number_t) (offsetof(vm_statistics64_data_t, decompressions) / sizeof(integer_t)))
macroHOST_EXTMOD_INFO64_COUNT
in <mach/vm_statistics.h>
vm_extmod_statistics
#define HOST_EXTMOD_INFO64_COUNT ((mach_msg_type_number_t) (sizeof(vm_extmod_statistics_data_t)/sizeof(integer_t)))
macroHOST_EXTMOD_INFO64_LATEST_COUNT
size of the latest version of the structure
#define HOST_EXTMOD_INFO64_LATEST_COUNT HOST_EXTMOD_INFO64_COUNT
macroHOST_VM_INFO_COUNT
#define HOST_VM_INFO_COUNT ((mach_msg_type_number_t) (sizeof(vm_statistics_data_t)/sizeof(integer_t)))
macroHOST_VM_INFO_LATEST_COUNT
size of the latest version of the structure
#define HOST_VM_INFO_LATEST_COUNT HOST_VM_INFO_COUNT
macroHOST_VM_INFO_REV2_COUNT
#define HOST_VM_INFO_REV2_COUNT HOST_VM_INFO_LATEST_COUNT
macroHOST_VM_INFO_REV1_COUNT
previous versions: adjust the size according to what was added each time
#define HOST_VM_INFO_REV1_COUNT /* added "speculative_count" (1 int) */ ((mach_msg_type_number_t) (HOST_VM_INFO_REV2_COUNT - 1))
macroHOST_VM_INFO_REV0_COUNT
#define HOST_VM_INFO_REV0_COUNT /* added "purgable" info (2 ints) */ ((mach_msg_type_number_t) (HOST_VM_INFO_REV1_COUNT - 2))
structhost_cpu_load_info
| natural_t[4] | cpu_ticks | ... in the given mode |
typedefhost_cpu_load_info_data_t
typedef struct host_cpu_load_info host_cpu_load_info_data_t
typedefhost_cpu_load_info_t
typedef struct host_cpu_load_info *host_cpu_load_info_t
macroHOST_CPU_LOAD_INFO_COUNT
#define HOST_CPU_LOAD_INFO_COUNT ((mach_msg_type_number_t) (sizeof (host_cpu_load_info_data_t) / sizeof (integer_t)))
structhost_preferred_user_arch
| cpu_type_t | cpu_type | Preferred user-space cpu type |
| cpu_subtype_t | cpu_subtype | Preferred user-space cpu subtype |
typedefhost_preferred_user_arch_data_t
typedef struct host_preferred_user_arch host_preferred_user_arch_data_t
typedefhost_preferred_user_arch_t
typedef struct host_preferred_user_arch *host_preferred_user_arch_t
macroHOST_PREFERRED_USER_ARCH_COUNT
#define HOST_PREFERRED_USER_ARCH_COUNT ((mach_msg_type_number_t) (sizeof(host_preferred_user_arch_data_t)/sizeof(integer_t)))