#include <mach/vm_attributes.h> also included by <mach/mach.h>

mach/vm_attributes.h

12 macros · 2 typedefs

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_CACHECachability. Aside from the generic values listed below, the following special values are defined:
MATTR_VAL_CACHE_FLUSHFlush from all caches
MATTR_VAL_DCACHE_FLUSHFlush from data caches
MATTR_VAL_ICACHE_FLUSHFlush from instruction caches
MATTR_MIGRATEMigratability.
MATTR_REPLICATEReplicability.

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_OFFTurn attribute off.
MATTR_VAL_ONTurn attribute on.
MATTR_VAL_GETNo 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

macroMATTR_VAL_CACHE_SYNC

#define MATTR_VAL_CACHE_SYNC 9
sync I+D caches

macroMATTR_VAL_CACHE_SYNC

#define MATTR_VAL_CACHE_SYNC 9
sync I+D caches

macroMATTR_VAL_GET_INFO

#define MATTR_VAL_GET_INFO 10
get page info (stats)