Lines Matching refs:oom_score_adj
1106 if (task->signal->oom_score_adj == OOM_SCORE_ADJ_MAX) in oom_adj_read()
1109 oom_adj = (task->signal->oom_score_adj * -OOM_DISABLE) / in oom_adj_read()
1130 if (oom_adj < task->signal->oom_score_adj && in __set_oom_adj()
1167 task->signal->oom_score_adj = oom_adj; in __set_oom_adj()
1186 p->signal->oom_score_adj = oom_adj; in __set_oom_adj()
1259 short oom_score_adj = OOM_SCORE_ADJ_MIN; in oom_score_adj_read() local
1264 oom_score_adj = task->signal->oom_score_adj; in oom_score_adj_read()
1266 len = snprintf(buffer, sizeof(buffer), "%hd\n", oom_score_adj); in oom_score_adj_read()
1274 int oom_score_adj; in oom_score_adj_write() local
1284 err = kstrtoint(strstrip(buffer), 0, &oom_score_adj); in oom_score_adj_write()
1287 if (oom_score_adj < OOM_SCORE_ADJ_MIN || in oom_score_adj_write()
1288 oom_score_adj > OOM_SCORE_ADJ_MAX) { in oom_score_adj_write()
1293 err = __set_oom_adj(file, oom_score_adj, false); in oom_score_adj_write()