Home
last modified time | relevance | path

Searched refs:oom_adj (Results 1 – 2 of 2) sorted by relevance

/external/chromium_org/sandbox/linux/suid/
Dprocess_util_linux.c33 char oom_adj[27]; // "/proc/" + log_10(2**64) + "\0" in AdjustOOMScore() local
35 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()
/external/chromium/base/
Dprocess_util_linux.cc703 FilePath oom_adj("/proc"); in AdjustOOMScore() local
704 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()