Lines Matching refs:oom_adj_path
245 static char *oom_adj_path = NULL; variable
267 oom_adj_path = oom_adjust[i].path; in oom_adjust_setup()
269 if ((fp = fopen(oom_adj_path, "r+")) != NULL) { in oom_adjust_setup()
271 verbose("error reading %s: %s", oom_adj_path, in oom_adjust_setup()
277 oom_adj_path, strerror(errno)); in oom_adjust_setup()
280 oom_adj_path, oom_adj_save, value); in oom_adjust_setup()
286 oom_adj_path = NULL; in oom_adjust_setup()
296 if (oom_adj_save == INT_MIN || oom_adj_path == NULL || in oom_adjust_restore()
297 (fp = fopen(oom_adj_path, "w")) == NULL) in oom_adjust_restore()
301 verbose("error writing %s: %s", oom_adj_path, strerror(errno)); in oom_adjust_restore()
303 debug("Set %s to %d", oom_adj_path, oom_adj_save); in oom_adjust_restore()