Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef _UAPI__INCLUDE_LINUX_OOM_H
0003 #define _UAPI__INCLUDE_LINUX_OOM_H
0004 
0005 /*
0006  * /proc/<pid>/oom_score_adj set to OOM_SCORE_ADJ_MIN disables oom killing for
0007  * pid.
0008  */
0009 #define OOM_SCORE_ADJ_MIN   (-1000)
0010 #define OOM_SCORE_ADJ_MAX   1000
0011 
0012 /*
0013  * /proc/<pid>/oom_adj set to -17 protects from the oom killer for legacy
0014  * purposes.
0015  */
0016 #define OOM_DISABLE (-17)
0017 /* inclusive */
0018 #define OOM_ADJUST_MIN (-16)
0019 #define OOM_ADJUST_MAX 15
0020 
0021 #endif /* _UAPI__INCLUDE_LINUX_OOM_H */