mach_sys/
vm_attributes.rs1use crate::ffi::{c_uint, c_int};
4
5pub type vm_machine_attribute_t = c_uint;
6pub type vm_machine_attribute_val_t = c_int;
7
8pub const MATTR_CACHE: vm_machine_attribute_t = 1;
9pub const MATTR_MIGRATE: vm_machine_attribute_t = 1 << 1;
10pub const MATTR_REPLICATE: vm_machine_attribute_t = 1 << 2;
11
12pub const MATTR_VAL_OFF: vm_machine_attribute_val_t = 0;
13pub const MATTR_VAL_ON: vm_machine_attribute_val_t = 1;
14pub const MATTR_VAL_GET: vm_machine_attribute_val_t = 2;
15pub const MATTR_VAL_CACHE_FLUSH: vm_machine_attribute_val_t = 6;
16pub const MATTR_VAL_DCACHE_FLUSH: vm_machine_attribute_val_t = 7;
17pub const MATTR_VAL_ICACHE_FLUSH: vm_machine_attribute_val_t = 8;
18pub const MATTR_VAL_CACHE_SYNC: vm_machine_attribute_val_t = 9;
19pub const MATTR_VAL_GET_INFO: vm_machine_attribute_val_t = 10;
20