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
22
// Ranges for the current (oom_score_adj) and previous (
oom_adj
)
37
char
oom_adj
[27]; // "/proc/" + log_10(2**64) + "\0"
local
39
snprintf(
oom_adj
, sizeof(
oom_adj
), "/proc/%" PRIdMAX, (intmax_t)process);
41
const int dirfd = open(
oom_adj
, O_RDONLY | O_DIRECTORY);
58
//
oom_adj
file instead.
59
fd = openat(dirfd, "
oom_adj
", O_WRONLY);
64
// If we're using the old
oom_adj
file, the allowed range is now
/frameworks/native/cmds/dumpstate/
dumpstate.c
360
FILE *
oom_adj
= fopen("/proc/self/
oom_adj
", "w");
local
361
if (
oom_adj
) {
362
fputs("-17",
oom_adj
);
363
fclose(
oom_adj
);
Completed in 320 milliseconds