| ... | @@ -3969,6 +3969,23 @@ pub const host_cpu_load_info = extern struct { | ... | @@ -3969,6 +3969,23 @@ pub const host_cpu_load_info = extern struct { |
| 3969 | pub const host_cpu_load_info_data_t = host_cpu_load_info; | 3969 | pub const host_cpu_load_info_data_t = host_cpu_load_info; |
| 3970 | pub const host_cpu_load_info_t = *host_cpu_load_info; | 3970 | pub const host_cpu_load_info_t = *host_cpu_load_info; |
| 3971 | | 3971 | |
| | 3972 | pub const host_load_info = extern struct { |
| | 3973 | avenrun: [3]integer_t, |
| | 3974 | mach_factor: [3]integer_t, |
| | 3975 | }; |
| | 3976 | |
| | 3977 | |
| | 3978 | pub const host_load_info_data_t = host_load_info; |
| | 3979 | pub const host_load_info_t = *host_load_info; |
| | 3980 | |
| | 3981 | pub const host_preferred_user_arch = extern struct { |
| | 3982 | cpu_type: cpu_type_t, |
| | 3983 | cpu_subtype: cpu_subtype_t, |
| | 3984 | }; |
| | 3985 | |
| | 3986 | pub const host_preferred_user_arch_data_t = host_preferred_user_arch; |
| | 3987 | pub const host_preferred_user_arch_t = *host_preferred_user_arch; |
| | 3988 | |
| 3972 | pub const HOST = struct { | 3989 | pub const HOST = struct { |
| 3973 | pub const BASIC_INFO = 1; | 3990 | pub const BASIC_INFO = 1; |
| 3974 | pub const SCHED_INFO = 3; | 3991 | pub const SCHED_INFO = 3; |
| ... | @@ -3985,6 +4002,8 @@ pub const HOST = struct { | ... | @@ -3985,6 +4002,8 @@ pub const HOST = struct { |
| 3985 | pub const RESOURCES_SIZES_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(kernel_resource_sizes_data_t) / @sizeOf(integer_t)); | 4002 | pub const RESOURCES_SIZES_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(kernel_resource_sizes_data_t) / @sizeOf(integer_t)); |
| 3986 | pub const PRIORITY_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_priority_info_data_t) / @sizeOf(integer_t)); | 4003 | pub const PRIORITY_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_priority_info_data_t) / @sizeOf(integer_t)); |
| 3987 | pub const CPU_LOAD_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_cpu_load_info_data_t) / @sizeOf(integer_t)); | 4004 | pub const CPU_LOAD_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_cpu_load_info_data_t) / @sizeOf(integer_t)); |
| | 4005 | pub const LOAD_INFO_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_load_info_data_t) / @sizeOf(integer_t)); |
| | 4006 | pub const PREFERRED_USER_ARCH_COUNT = @intCast(mach_msg_type_number_t, @sizeOf(host_preferred_user_arch_data_t) / @sizeOf(integer_t)); |
| 3988 | }; | 4007 | }; |
| 3989 | | 4008 | |
| 3990 | pub const host_basic_info = packed struct(u32) { | 4009 | pub const host_basic_info = packed struct(u32) { |