struct VM [src]

Alias for std.c.darwin.VM

Members

Source

pub const VM = struct { pub const INHERIT = struct { pub const SHARE: vm_inherit_t = 0; pub const COPY: vm_inherit_t = 1; pub const NONE: vm_inherit_t = 2; pub const DONATE_COPY: vm_inherit_t = 3; pub const DEFAULT = COPY; }; pub const BEHAVIOR = struct { pub const DEFAULT: vm_behavior_t = 0; pub const RANDOM: vm_behavior_t = 1; pub const SEQUENTIAL: vm_behavior_t = 2; pub const RSEQNTL: vm_behavior_t = 3; pub const WILLNEED: vm_behavior_t = 4; pub const DONTNEED: vm_behavior_t = 5; pub const FREE: vm_behavior_t = 6; pub const ZERO_WIRED_PAGES: vm_behavior_t = 7; pub const REUSABLE: vm_behavior_t = 8; pub const REUSE: vm_behavior_t = 9; pub const CAN_REUSE: vm_behavior_t = 10; pub const PAGEOUT: vm_behavior_t = 11; }; pub const REGION = struct { pub const BASIC_INFO_64 = 9; pub const EXTENDED_INFO = 13; pub const TOP_INFO = 12; pub const SUBMAP_INFO_COUNT_64: mach_msg_type_number_t = @sizeOf(vm_region_submap_info_64) / @sizeOf(natural_t); pub const SUBMAP_SHORT_INFO_COUNT_64: mach_msg_type_number_t = @sizeOf(vm_region_submap_short_info_64) / @sizeOf(natural_t); pub const BASIC_INFO_COUNT: mach_msg_type_number_t = @sizeOf(vm_region_basic_info_64) / @sizeOf(c_int); pub const EXTENDED_INFO_COUNT: mach_msg_type_number_t = @sizeOf(vm_region_extended_info) / @sizeOf(natural_t); pub const TOP_INFO_COUNT: mach_msg_type_number_t = @sizeOf(vm_region_top_info) / @sizeOf(natural_t); }; pub fn MAKE_TAG(tag: u8) u32 { return @as(u32, tag) << 24; } }