#include <mach/vm_attributes.h> also included by
<mach/mach.h>mach/vm_attributes.h
typedefvm_machine_attribute_t
Types of machine-dependent attributes
typedef unsigned int vm_machine_attribute_t
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Defined values:
| MATTR_CACHE | Cachability. Aside from the generic values listed below, the following special values are defined: |
| MATTR_VAL_CACHE_FLUSH | Flush from all caches |
| MATTR_VAL_DCACHE_FLUSH | Flush from data caches |
| MATTR_VAL_ICACHE_FLUSH | Flush from instruction caches |
| MATTR_MIGRATE | Migratability. |
| MATTR_REPLICATE | Replicability. |
macroMATTR_CACHE
#define MATTR_CACHE 1
cachability
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Cachability. Aside from the generic values listed below, the following special values are defined:
macroMATTR_MIGRATE
#define MATTR_MIGRATE 2
migrability
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Migratability.
macroMATTR_REPLICATE
#define MATTR_REPLICATE 4
replicability
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Replicability.
typedefvm_machine_attribute_val_t
Values for the above, e.g. operations on attribute
typedef int vm_machine_attribute_val_t
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Defined values:
| MATTR_VAL_OFF | Turn attribute off. |
| MATTR_VAL_ON | Turn attribute on. |
| MATTR_VAL_GET | No change, just return current value. |
macroMATTR_VAL_OFF
#define MATTR_VAL_OFF 0
(generic) turn attribute off
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Turn attribute off.
macroMATTR_VAL_ON
#define MATTR_VAL_ON 1
(generic) turn attribute on
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Turn attribute on.
macroMATTR_VAL_GET
#define MATTR_VAL_GET 2
(generic) return current value
CMU/MIT Mach reference · manual page · © Carnegie Mellon
No change, just return current value.
macroMATTR_VAL_CACHE_FLUSH
#define MATTR_VAL_CACHE_FLUSH 6
flush from all caches
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Flush from all caches
macroMATTR_VAL_DCACHE_FLUSH
#define MATTR_VAL_DCACHE_FLUSH 7
flush from data caches
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Flush from data caches
macroMATTR_VAL_ICACHE_FLUSH
#define MATTR_VAL_ICACHE_FLUSH 8
flush from instruction caches
CMU/MIT Mach reference · manual page · © Carnegie Mellon
Flush from instruction caches