diff options
Diffstat (limited to 'include/linux/oom.h')
-rw-r--r-- | include/linux/oom.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/include/linux/oom.h b/include/linux/oom.h index ad76463629a0..3852436b652a 100644 --- a/include/linux/oom.h +++ b/include/linux/oom.h | |||
@@ -7,4 +7,28 @@ | |||
7 | #define OOM_ADJUST_MIN (-16) | 7 | #define OOM_ADJUST_MIN (-16) |
8 | #define OOM_ADJUST_MAX 15 | 8 | #define OOM_ADJUST_MAX 15 |
9 | 9 | ||
10 | #endif | 10 | #ifdef __KERNEL__ |
11 | |||
12 | #include <linux/types.h> | ||
13 | |||
14 | struct zonelist; | ||
15 | struct notifier_block; | ||
16 | |||
17 | /* | ||
18 | * Types of limitations to the nodes from which allocations may occur | ||
19 | */ | ||
20 | enum oom_constraint { | ||
21 | CONSTRAINT_NONE, | ||
22 | CONSTRAINT_CPUSET, | ||
23 | CONSTRAINT_MEMORY_POLICY, | ||
24 | }; | ||
25 | |||
26 | extern int try_set_zone_oom(struct zonelist *zonelist); | ||
27 | extern void clear_zonelist_oom(struct zonelist *zonelist); | ||
28 | |||
29 | extern void out_of_memory(struct zonelist *zonelist, gfp_t gfp_mask, int order); | ||
30 | extern int register_oom_notifier(struct notifier_block *nb); | ||
31 | extern int unregister_oom_notifier(struct notifier_block *nb); | ||
32 | |||
33 | #endif /* __KERNEL__*/ | ||
34 | #endif /* _INCLUDE_LINUX_OOM_H */ | ||