Searched refs:oom_adj (Results 1 – 2 of 2) sorted by relevance
33 char oom_adj[27]; // "/proc/" + log_10(2**64) + "\0" in AdjustOOMScore() local35 snprintf(oom_adj, sizeof(oom_adj), "/proc/%" PRIdMAX, (intmax_t)process); in AdjustOOMScore()37 const int dirfd = open(oom_adj, O_RDONLY | O_DIRECTORY); in AdjustOOMScore()
703 FilePath oom_adj("/proc"); in AdjustOOMScore() local704 oom_adj = oom_adj.Append(base::Int64ToString(process)); in AdjustOOMScore()705 oom_adj = oom_adj.AppendASCII("oom_adj"); in AdjustOOMScore()707 if (!file_util::PathExists(oom_adj)) in AdjustOOMScore()712 file_util::WriteFile(oom_adj, score_str.c_str(), score_str.length())); in AdjustOOMScore()