X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/43866e378188c25dd1e2208016ab3cbeb086ae6c..55e303ae13a4cf49d70f2294092726f2fffb9ef2:/osfmk/vm/vm_map.h diff --git a/osfmk/vm/vm_map.h b/osfmk/vm/vm_map.h index fd0422f45..b2553a1a6 100644 --- a/osfmk/vm/vm_map.h +++ b/osfmk/vm/vm_map.h @@ -868,6 +868,12 @@ extern kern_return_t vm_map_region_replace( vm_offset_t start, vm_offset_t end); +extern boolean_t vm_map_check_protection( + vm_map_t map, + vm_offset_t start, + vm_offset_t end, + vm_prot_t protection); + /* * Macros to invoke vm_map_copyin_common. vm_map_copyin is the * usual form; it handles a copyin based on the current protection @@ -894,6 +900,15 @@ extern kern_return_t vm_map_region_replace( #define VM_MAP_REMOVE_INTERRUPTIBLE 0x2 #define VM_MAP_REMOVE_WAIT_FOR_KWIRE 0x4 +/* + * Backing store throttle when BS is exhausted + */ +extern unsigned int vm_backing_store_low; + +extern void vm_backing_store_disable( + boolean_t suspend); + + #endif /* __APPLE_API_PRIVATE */ #endif /* _VM_VM_MAP_H_ */