oom.h 511 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef __INCLUDE_LINUX_OOM_H
  3. #define __INCLUDE_LINUX_OOM_H
  4. /*
  5. * /proc/<pid>/oom_score_adj set to OOM_SCORE_ADJ_MIN disables oom killing for
  6. * pid.
  7. */
  8. #define OOM_SCORE_ADJ_MIN (-1000)
  9. #define OOM_SCORE_ADJ_MAX 1000
  10. /*
  11. * /proc/<pid>/oom_adj set to -17 protects from the oom killer for legacy
  12. * purposes.
  13. */
  14. #define OOM_DISABLE (-17)
  15. /* inclusive */
  16. #define OOM_ADJUST_MIN (-16)
  17. #define OOM_ADJUST_MAX 15
  18. #endif /* __INCLUDE_LINUX_OOM_H */