hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/include/linux/task_work.h
....@@ -13,7 +13,17 @@
1313 twork->func = func;
1414 }
1515
16
-int task_work_add(struct task_struct *task, struct callback_head *twork, bool);
16
+enum task_work_notify_mode {
17
+ TWA_NONE,
18
+ TWA_RESUME,
19
+ TWA_SIGNAL,
20
+};
21
+
22
+int task_work_add(struct task_struct *task, struct callback_head *twork,
23
+ enum task_work_notify_mode mode);
24
+
25
+struct callback_head *task_work_cancel_match(struct task_struct *task,
26
+ bool (*match)(struct callback_head *, void *data), void *data);
1727 struct callback_head *task_work_cancel(struct task_struct *, task_work_func_t);
1828 void task_work_run(void);
1929