#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.
40 macros · 24 typedefs · 8 structs

typedefhost_info_t

Generic information structure to allow for expansion.
typedef integer_t *host_info_t
varying array of int.

typedefhost_info64_t

typedef integer_t *host_info64_t
varying array of int.

macroHOST_INFO_MAX

#define HOST_INFO_MAX (1024)
max array size

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_INFOBasic information (number of processors, amount of memory). The returned structure is host_basic_info.
HOST_SCHED_INFOBasic restrictions of the kernel's scheduling, minimum quantum and time-out value. The returned structure is host_sched_info.
HOST_RESOURCE_SIZESThis 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_INFOSystem loading statistics. The returned structure is host_load_info.
HOST_VM_INFOVirtual 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.
a value of host_flavor_t

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.
a value of host_flavor_t

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.
a value of host_flavor_t

macroHOST_PRIORITY_INFO

#define HOST_PRIORITY_INFO 5
priority information

macroHOST_SEMAPHORE_TRAPS

#define HOST_SEMAPHORE_TRAPS 7
Has semaphore traps

macroHOST_MACH_MSG_TRAP

#define HOST_MACH_MSG_TRAP 8
Has mach_msg_trap

macroHOST_VM_PURGABLE

#define HOST_VM_PURGABLE 9
purg'e'able memory info

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

size 4, align 4
boolean_tcan_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

size 48, align 4
integer_tmax_cpusmax number of CPUs possible
integer_tavail_cpusnumber of CPUs now available
natural_tmemory_sizesize of memory in bytes, capped at 2 GB
cpu_type_tcpu_typecpu type
cpu_subtype_tcpu_subtypecpu subtype
cpu_threadtype_tcpu_threadtypecpu threadtype
integer_tphysical_cpunumber of physical CPUs now available
integer_tphysical_cpu_maxmax number of physical CPUs possible
integer_tlogical_cpunumber of logical cpu now available
integer_tlogical_cpu_maxmax number of physical CPUs possible
uint64_tmax_memactual 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

size 8, align 4
integer_tmin_timeoutminimum timeout in milliseconds
integer_tmin_quantumminimum 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

size 20, align 4
natural_ttask
natural_tthread
natural_tport
natural_tmemory_region
natural_tmemory_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

size 32, align 4
integer_tkernel_priority
integer_tsystem_priority
integer_tserver_priority
integer_tuser_priority
integer_tdepress_priority
integer_tidle_priority
integer_tminimum_priority
integer_tmaximum_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.
a value of host_flavor_t

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.
a value of host_flavor_t

macroHOST_CPU_LOAD_INFO

#define HOST_CPU_LOAD_INFO 3
CPU load stats

macroHOST_VM_INFO64

#define HOST_VM_INFO64 4
64-bit virtual memory stats

macroHOST_EXTMOD_INFO64

#define HOST_EXTMOD_INFO64 5
External modification stats

macroHOST_EXPIRED_TASK_INFO

#define HOST_EXPIRED_TASK_INFO 6
Statistics for expired tasks

structhost_load_info

size 24, align 4
integer_t[3]avenrunscaled by LOAD_SCALE
integer_t[3]mach_factorscaled 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

#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_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

size 16, align 4
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

size 8, align 4
cpu_type_tcpu_typePreferred user-space cpu type
cpu_subtype_tcpu_subtypePreferred 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)))