aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/oom.h
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2007-10-17 02:25:53 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 11:42:45 -0400
commit5a3135c2e77fe88cdea20b5e3f4761068b799ac2 (patch)
treed82b0568722d285673251210716801e6fc4a90ed /include/linux/oom.h
parent4ba9b9d0ba0a49d91fa6417c7510ee36f48cf957 (diff)
oom: move prototypes to appropriate header file
Move the OOM killer's extern function prototypes to include/linux/oom.h and include it where necessary. [clg@fr.ibm.com: build fix] Cc: Andrea Arcangeli <andrea@suse.de> Acked-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Cedric Le Goater <clg@fr.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/oom.h')
-rw-r--r--include/linux/oom.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/oom.h b/include/linux/oom.h
index ad76463629a..b40bb4e32c2 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
14extern void out_of_memory(struct zonelist *zonelist, gfp_t gfp_mask, int order);
15extern int register_oom_notifier(struct notifier_block *nb);
16extern int unregister_oom_notifier(struct notifier_block *nb);
17
18#endif /* __KERNEL__*/
19#endif /* _INCLUDE_LINUX_OOM_H */