diff options
Diffstat (limited to 'include/linux/oom.h')
-rw-r--r-- | include/linux/oom.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/oom.h b/include/linux/oom.h index ad76463629a0..b40bb4e32c2f 100644 --- a/include/linux/oom.h +++ b/include/linux/oom.h | |||
@@ -1,10 +1,19 @@ | |||
1 | #ifndef __INCLUDE_LINUX_OOM_H | 1 | #ifndef __INCLUDE_LINUX_OOM_H |
2 | #define __INCLUDE_LINUX_OOM_H | 2 | #define __INCLUDE_LINUX_OOM_H |
3 | 3 | ||
4 | #include <linux/sched.h> | ||
5 | |||
4 | /* /proc/<pid>/oom_adj set to -17 protects from the oom-killer */ | 6 | /* /proc/<pid>/oom_adj set to -17 protects from the oom-killer */ |
5 | #define OOM_DISABLE (-17) | 7 | #define OOM_DISABLE (-17) |
6 | /* inclusive */ | 8 | /* inclusive */ |
7 | #define OOM_ADJUST_MIN (-16) | 9 | #define OOM_ADJUST_MIN (-16) |
8 | #define OOM_ADJUST_MAX 15 | 10 | #define OOM_ADJUST_MAX 15 |
9 | 11 | ||
10 | #endif | 12 | #ifdef __KERNEL__ |
13 | |||
14 | extern void out_of_memory(struct zonelist *zonelist, gfp_t gfp_mask, int order); | ||
15 | extern int register_oom_notifier(struct notifier_block *nb); | ||
16 | extern int unregister_oom_notifier(struct notifier_block *nb); | ||
17 | |||
18 | #endif /* __KERNEL__*/ | ||
19 | #endif /* _INCLUDE_LINUX_OOM_H */ | ||