#ifndef __INCLUDE_LINUX_OOM_H #define __INCLUDE_LINUX_OOM_H #include <linux/sched/signal.h> #include <linux/types.h> #include <linux/nodemask.h> #include <uapi/linux/oom.h> struct zonelist; struct notifier_block; struct mem_cgroup; struct task_struct; /* * Details of the page allocation that triggered the oom killer that are used to * determine what should be killed. */ struct oom_control { /* Used to determine cpuset */ struct zonelist *zonelist; /* Used to determine mempolicy */ nodemask_t *nodemask; /* Memory cgroup in which oom is invoked, or NULL for global oom */ struct mem_cgroup *memcg; /* Used to determine cpuset and node locality requirement */ const gfp_t gfp_mask; /* * order == -1 means the oom kill is required by sysrq, otherwise only * for display purposes. */ const int order; /* Used by oom implementation, do not set */ unsigned long totalpages; struct task_struct *chosen; unsigned long chosen_points; }; extern struct mutex oom_lock;
static inline void set_current_oom_origin(void) { current->signal->oom_flag_origin = true; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Rientjes | 14 | 82.35% | 2 | 66.67% |
Tetsuo Handa | 3 | 17.65% | 1 | 33.33% |
Total | 17 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Rientjes | 14 | 82.35% | 1 | 50.00% |
Tetsuo Handa | 3 | 17.65% | 1 | 50.00% |
Total | 17 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Rientjes | 19 | 95.00% | 2 | 66.67% |
Tetsuo Handa | 1 | 5.00% | 1 | 33.33% |
Total | 20 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Michal Hocko | 19 | 100.00% | 1 | 100.00% |
Total | 19 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
David Rientjes | 152 | 58.24% | 10 | 35.71% |
Michal Hocko | 29 | 11.11% | 4 | 14.29% |
Vladimir Davydov | 20 | 7.66% | 2 | 7.14% |
Kamezawa Hiroyuki | 16 | 6.13% | 2 | 7.14% |
Alexey Dobriyan | 14 | 5.36% | 2 | 7.14% |
Johannes Weiner | 12 | 4.60% | 3 | 10.71% |
Tetsuo Handa | 8 | 3.07% | 2 | 7.14% |
Andrew Morton | 6 | 2.30% | 1 | 3.57% |
David Howells | 3 | 1.15% | 1 | 3.57% |
Ingo Molnar | 1 | 0.38% | 1 | 3.57% |
Total | 261 | 100.00% | 28 | 100.00% |