.. | .. |
---|
13 | 13 | twork->func = func; |
---|
14 | 14 | } |
---|
15 | 15 | |
---|
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); |
---|
17 | 27 | struct callback_head *task_work_cancel(struct task_struct *, task_work_func_t); |
---|
18 | 28 | void task_work_run(void); |
---|
19 | 29 | |
---|