]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/vm_pressure.h
xnu-2782.40.9.tar.gz
[apple/xnu.git] / bsd / kern / vm_pressure.h
index 059e9c23cb6822a423e45664f7cd86e9e63d9e8c..4022835837faa282ed32326fd10ced413be07bc7 100644 (file)
@@ -30,6 +30,7 @@
 #define VM_PRESSURE_H
 
 #include <sys/queue.h>
+#include <sys/event.h>
 
 void vm_pressure_init(lck_grp_t *grp, lck_attr_t *attr);
 
@@ -39,8 +40,10 @@ void vm_knote_unregister(struct knote *);
 void consider_vm_pressure_events(void);
 void vm_pressure_proc_cleanup(proc_t);
 
-#if CONFIG_MEMORYSTATUS && (DEVELOPMENT || DEBUG)
-boolean_t vm_dispatch_pressure_note_to_pid(pid_t pid);
-#endif
+#if VM_PRESSURE_EVENTS
+void vm_find_pressure_foreground_candidates(void);
+void vm_find_pressure_candidate(void);
+boolean_t vm_dispatch_pressure_note_to_pid(pid_t pid, boolean_t locked);
+#endif /* VM_PRESSURE_EVENTS */
 
 #endif /* VM_PRESSURE_H */