osfmk/man/host_basic_info.html
Structure - Used to present basic information about a host.
**struct host\_basic\_info**** { ****integer\_t** max\_cpus **;**** integer\_t **avail\_cpus** ; ****vm\_size\_t** memory\_size **;**** cpu\_type\_t **cpu\_type** ; ****cpu\_subtype\_t** cpu\_subtype **;**** cpu\_threadtype\_t **cpu\_threadtype** ; ****integer\_t** physical\_cpu **;**** integer\_t **physical\_cpu\_max** ; ****integer\_t** logical\_cpu **;**** integer\_t **logical\_cpu\_max** ; ****uint64\_t** max\_mem **;**** }; ****typedef struct host\_basic\_info\* host\_basic\_info\_t;**
max_cpusMaximum number of CPUs possible
avail_cpusNumber of CPUs now available
memory_sizeSize of memory in bytes, capped at 2 GB
cpu_typeCPU type
cpu_subtypeCPU sub-type
cpu_threadtypeCPU thread-type
physical_cpuNumber of physical CPUs now available
physical_cpu_maxMaximum number of physical CPUs possible
logical_cpuNumber of logical CPUs now available
logical_cpu_maxMaximum number of logical CPUs possible
max_memActual size of physical memory in bytes
The host_basic_info structure defines the basic information available about a host.
This structure is machine word length specific because of the memory size returned.
Functions: host_info.
Data Structures: host_load_info, host_sched_info.