OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:oom_adj
(Results
1 - 2
of
2
) sorted by null
/external/chromium_org/sandbox/linux/suid/
process_util_linux.c
25
// Ranges for the current (oom_score_adj) and previous (
oom_adj
)
36
char
oom_adj
[27]; // "/proc/" + log_10(2**64) + "\0"
local
38
snprintf(
oom_adj
, sizeof(
oom_adj
), "/proc/%" PRIdMAX, (intmax_t)process);
40
const int dirfd = open(
oom_adj
, O_RDONLY | O_DIRECTORY);
57
//
oom_adj
file instead.
58
fd = openat(dirfd, "
oom_adj
", O_WRONLY);
63
// If we're using the old
oom_adj
file, the allowed range is now
/frameworks/native/cmds/dumpstate/
dumpstate.c
416
FILE *
oom_adj
= fopen("/proc/self/
oom_adj
", "w");
local
417
if (
oom_adj
) {
418
fputs("-17",
oom_adj
);
419
fclose(
oom_adj
);
Completed in 1582 milliseconds