]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/vm_pressure.h
xnu-2782.20.48.tar.gz
[apple/xnu.git] / bsd / kern / vm_pressure.h
index 8063c820a17ff53fd51ca99c29ed4b2dbcb40e73..4022835837faa282ed32326fd10ced413be07bc7 100644 (file)
 #define VM_PRESSURE_H
 
 #include <sys/queue.h>
+#include <sys/event.h>
 
-static lck_mtx_t vm_pressure_klist_mutex;
+void vm_pressure_init(lck_grp_t *grp, lck_attr_t *attr);
 
 int vm_knote_register(struct knote *);
 void vm_knote_unregister(struct knote *);
 
-void consider_pressure_events(void);
+void consider_vm_pressure_events(void);
+void vm_pressure_proc_cleanup(proc_t);
+
+#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 */