aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/oom.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/oom.h')
-rw-r--r--include/linux/oom.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/oom.h b/include/linux/oom.h
index b40bb4e32c2f..cf6ebf5b422c 100644
--- a/include/linux/oom.h
+++ b/include/linux/oom.h
@@ -11,6 +11,15 @@
11 11
12#ifdef __KERNEL__ 12#ifdef __KERNEL__
13 13
14/*
15 * Types of limitations to the nodes from which allocations may occur
16 */
17enum oom_constraint {
18 CONSTRAINT_NONE,
19 CONSTRAINT_CPUSET,
20 CONSTRAINT_MEMORY_POLICY,
21};
22
14extern void out_of_memory(struct zonelist *zonelist, gfp_t gfp_mask, int order); 23extern void out_of_memory(struct zonelist *zonelist, gfp_t gfp_mask, int order);
15extern int register_oom_notifier(struct notifier_block *nb); 24extern int register_oom_notifier(struct notifier_block *nb);
16extern int unregister_oom_notifier(struct notifier_block *nb); 25extern int unregister_oom_notifier(struct notifier_block *nb);