Home
last modified time | relevance | path

Searched refs:callback_head (Results 1 – 25 of 45) sorted by relevance

12

/linux/kernel/
H A Dtask_work.c7 static struct callback_head work_exited; /* all we need is ->next == NULL */
59 int task_work_add(struct task_struct *task, struct callback_head *work, in task_work_add()
62 struct callback_head *head; in task_work_add()
115 struct callback_head *
117 bool (*match)(struct callback_head *, void *data), in task_work_cancel_match() argument
120 struct callback_head **pprev = &task->task_works; in task_work_cancel_match()
121 struct callback_head *work; in task_work_cancel_match()
146 static bool task_work_func_match(struct callback_head *cb, void *data) in task_work_func_match()
162 struct callback_head *
168 static bool task_work_match(struct callback_head *cb, void *data) in task_work_match()
[all …]
/linux/include/linux/
H A Dtask_work.h8 typedef void (*task_work_func_t)(struct callback_head *);
11 init_task_work(struct callback_head *twork, task_work_func_t func) in init_task_work()
29 int task_work_add(struct task_struct *task, struct callback_head *twork,
32 struct callback_head *task_work_cancel_match(struct task_struct *task,
33 bool (*match)(struct callback_head *, void *data), void *data);
34 struct callback_head *task_work_cancel_func(struct task_struct *, task_work_func_t);
35 bool task_work_cancel(struct task_struct *task, struct callback_head *cb);
H A Dtypes.h246 struct callback_head { struct
247 struct callback_head *next; argument
248 void (*func)(struct callback_head *head); argument
250 #define rcu_head callback_head
H A Dunwind_deferred_types.h38 struct callback_head work;
H A Dposix-timers_types.h69 struct callback_head work;
H A Dio_uring_types.h127 struct callback_head task_work;
461 struct callback_head poll_wq_task_work;
H A Dsched.h889 struct callback_head sched_throttle_work;
1207 struct callback_head *task_works;
1369 struct callback_head numa_work;
1602 struct callback_head mce_kill_me;
1620 struct callback_head l1d_flush_kill;
H A Duprobes.h142 struct callback_head dup_xol_work;
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcore_read_macros.c6 struct callback_head { struct
7 struct callback_head *next; argument
8 void (*func)(struct callback_head *head); argument
18 void (*func)(struct callback_head *head);
28 struct callback_head u_probe_in; in test_core_read_macros()
/linux/drivers/android/binder/
H A Ddeferred_close.rs39 twork: MaybeUninit<bindings::callback_head>,
87 let callback_head = inner.cast::<bindings::callback_head>(); in close_fd() localVariable
95 unsafe { bindings::init_task_work(callback_head, Some(Self::do_close_fd)) }; in close_fd()
110 let res = unsafe { bindings::task_work_add(current, callback_head, TWA_RESUME) }; in close_fd()
176 unsafe extern "C" fn do_close_fd(inner: *mut bindings::callback_head) { in do_close_fd() argument
/linux/tools/testing/selftests/bpf/progs/
H A Dbtf_dump_test_case_ordering.c45 struct callback_head { struct
46 struct callback_head *next; argument
47 void (*func)(struct callback_head *); argument
55 struct callback_head cb;
H A Dkfree_skb.c19 struct callback_head { struct
20 struct callback_head *next; argument
21 void (*func)(struct callback_head *head); argument
24 struct callback_head rcuhead;
64 struct callback_head *ptr; in BPF_PROG()
H A Dtest_core_read_macros.c16 struct callback_head k_probe_in = {};
19 struct callback_head *u_probe_in = 0;
H A Dexhandler_kern.c22 struct callback_head *work; in BPF_PROG()
/linux/io_uring/
H A Dio-wq.c63 struct callback_head create_work;
152 static void create_worker_cb(struct callback_head *cb);
222 static bool io_task_worker_match(struct callback_head *cb, void *data) in io_task_worker_match()
238 struct callback_head *cb = task_work_cancel_match(wq->task, in io_worker_exit()
351 static void create_worker_cb(struct callback_head *cb) in create_worker_cb()
841 static void create_worker_cont(struct callback_head *cb) in create_worker_cont()
1305 static bool io_task_work_match(struct callback_head *cb, void *data) in io_task_work_match()
1322 struct callback_head *cb; in io_wq_cancel_tw_create()
H A Dmsg_ring.c23 struct callback_head tw;
208 static void io_msg_tw_fd_complete(struct callback_head *head) in io_msg_tw_fd_complete()
H A Dtw.h27 void tctx_task_work(struct callback_head *cb);
H A Dtw.c143 void tctx_task_work(struct callback_head *cb) in tctx_task_work()
/linux/rust/helpers/
H A Dbinder.c23 __rust_helper void rust_helper_init_task_work(struct callback_head *twork, in rust_helper_init_task_work()
/linux/Documentation/bpf/
H A Ddrgn.rst202 .rcu = (struct callback_head){
203 .next = (struct callback_head *)0x0,
204 .func = (void (*)(struct callback_head *))0x0,
/linux/security/landlock/
H A Dtsync.c60 struct callback_head work;
158 static void restrict_one_thread_callback(struct callback_head *work) in restrict_one_thread_callback()
/linux/security/yama/
H A Dyama_lsm.c46 struct callback_head work;
52 static void __report_access(struct callback_head *work) in __report_access()
/linux/tools/testing/selftests/bpf/test_kmods/
H A Dbpf_testmod_kfunc.h84 struct callback_head rcu;
/linux/kernel/unwind/
H A Ddeferred.c187 static void unwind_deferred_task_work(struct callback_head *head) in unwind_deferred_task_work()
/linux/security/keys/
H A Dinternal.h163 extern void key_change_session_keyring(struct callback_head *twork);

12