#include <linux/user-return-notifier.h> #include <linux/percpu.h> #include <linux/sched.h> #include <linux/export.h> static DEFINE_PER_CPU(struct hlist_head, return_notifier_list); /* * Request a notification when the current cpu returns to userspace. Must be * called in atomic context. The notifier will also be called in atomic * context. */
void user_return_notifier_register(struct user_return_notifier *urn) { set_tsk_thread_flag(current, TIF_USER_RETURN_NOTIFY); hlist_add_head(&urn->link, this_cpu_ptr(&return_notifier_list)); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Avi Kivity | 29 | 93.55% | 2 | 66.67% |
Christoph Lameter | 2 | 6.45% | 1 | 33.33% |
Total | 31 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Avi Kivity | 34 | 94.44% | 2 | 66.67% |
Christoph Lameter | 2 | 5.56% | 1 | 33.33% |
Total | 36 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Avi Kivity | 49 | 94.23% | 1 | 50.00% |
Stephen Rothwell | 3 | 5.77% | 1 | 50.00% |
Total | 52 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Avi Kivity | 144 | 94.12% | 2 | 33.33% |
Christoph Lameter | 4 | 2.61% | 1 | 16.67% |
Stephen Rothwell | 3 | 1.96% | 1 | 16.67% |
Lucas De Marchi | 1 | 0.65% | 1 | 16.67% |
Paul Gortmaker | 1 | 0.65% | 1 | 16.67% |
Total | 153 | 100.00% | 6 | 100.00% |