1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux << 2 #ifndef _UAPI__INCLUDE_LINUX_OOM_H 1 #ifndef _UAPI__INCLUDE_LINUX_OOM_H 3 #define _UAPI__INCLUDE_LINUX_OOM_H 2 #define _UAPI__INCLUDE_LINUX_OOM_H 4 3 5 /* 4 /* 6 * /proc/<pid>/oom_score_adj set to OOM_SCORE_ 5 * /proc/<pid>/oom_score_adj set to OOM_SCORE_ADJ_MIN disables oom killing for 7 * pid. 6 * pid. 8 */ 7 */ 9 #define OOM_SCORE_ADJ_MIN (-1000) 8 #define OOM_SCORE_ADJ_MIN (-1000) 10 #define OOM_SCORE_ADJ_MAX 1000 9 #define OOM_SCORE_ADJ_MAX 1000 11 10 12 /* 11 /* 13 * /proc/<pid>/oom_adj set to -17 protects fro 12 * /proc/<pid>/oom_adj set to -17 protects from the oom killer for legacy 14 * purposes. 13 * purposes. 15 */ 14 */ 16 #define OOM_DISABLE (-17) 15 #define OOM_DISABLE (-17) 17 /* inclusive */ 16 /* inclusive */ 18 #define OOM_ADJUST_MIN (-16) 17 #define OOM_ADJUST_MIN (-16) 19 #define OOM_ADJUST_MAX 15 18 #define OOM_ADJUST_MAX 15 20 19 21 #endif /* _UAPI__INCLUDE_LINUX_OOM_H */ 20 #endif /* _UAPI__INCLUDE_LINUX_OOM_H */ 22 21
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.