#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 | avi kivity | 29 | 93.55% | 2 | 66.67% |
christoph lameter | christoph lameter | 2 | 6.45% | 1 | 33.33% |
Total | 31 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
avi kivity | avi kivity | 34 | 94.44% | 2 | 66.67% |
christoph lameter | christoph lameter | 2 | 5.56% | 1 | 33.33% |
Total | 36 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
avi kivity | avi kivity | 49 | 94.23% | 1 | 50.00% |
stephen rothwell | stephen rothwell | 3 | 5.77% | 1 | 50.00% |
Total | 52 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
avi kivity | avi kivity | 144 | 94.12% | 2 | 33.33% |
christoph lameter | christoph lameter | 4 | 2.61% | 1 | 16.67% |
stephen rothwell | stephen rothwell | 3 | 1.96% | 1 | 16.67% |
lucas de marchi | lucas de marchi | 1 | 0.65% | 1 | 16.67% |
paul gortmaker | paul gortmaker | 1 | 0.65% | 1 | 16.67% |
Total | 153 | 100.00% | 6 | 100.00% |