OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:oom_adj
(Results
1 - 3
of
3
) 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
438
FILE *
oom_adj
= fopen("/proc/self/
oom_adj
", "w");
local
439
if (
oom_adj
) {
440
fputs("-17",
oom_adj
);
441
fclose(
oom_adj
);
/system/core/lmkd/
lmkd.c
151
static int lowmem_oom_adj_to_oom_score_adj(int
oom_adj
)
153
if (
oom_adj
== OOM_ADJUST_MAX)
156
return (
oom_adj
* OOM_SCORE_ADJ_MAX) / -OOM_DISABLE;
586
" to free %ldkB because cache %s%ldkB is below limit %ldkB for
oom_adj
%d\n"
Completed in 202 milliseconds