blob: 750b1c5a4decfa9f93550952f88ce60ad7712133 [file] [log] [blame]
Greg Kroah-Hartman6f52b162017-11-01 15:08:43 +01001/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
David Howells607ca462012-10-13 10:46:48 +01002#ifndef _UAPI__INCLUDE_LINUX_OOM_H
3#define _UAPI__INCLUDE_LINUX_OOM_H
4
5/*
6 * /proc/<pid>/oom_score_adj set to OOM_SCORE_ADJ_MIN disables oom killing for
7 * pid.
8 */
9#define OOM_SCORE_ADJ_MIN (-1000)
10#define OOM_SCORE_ADJ_MAX 1000
11
David Rientjesfa0cbbf2012-11-12 17:53:04 -080012/*
13 * /proc/<pid>/oom_adj set to -17 protects from the oom killer for legacy
14 * purposes.
15 */
16#define OOM_DISABLE (-17)
17/* inclusive */
18#define OOM_ADJUST_MIN (-16)
19#define OOM_ADJUST_MAX 15
20
David Howells607ca462012-10-13 10:46:48 +010021#endif /* _UAPI__INCLUDE_LINUX_OOM_H */