From 748e4f3d702def1a4bff191e0cf93b6a05340f01 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 10 May 2024 07:41:34 +0000 Subject: [PATCH] add gpio led uart --- kernel/include/linux/task_work.h | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/kernel/include/linux/task_work.h b/kernel/include/linux/task_work.h index bd9a6a9..5b8a93f 100644 --- a/kernel/include/linux/task_work.h +++ b/kernel/include/linux/task_work.h @@ -13,7 +13,17 @@ twork->func = func; } -int task_work_add(struct task_struct *task, struct callback_head *twork, bool); +enum task_work_notify_mode { + TWA_NONE, + TWA_RESUME, + TWA_SIGNAL, +}; + +int task_work_add(struct task_struct *task, struct callback_head *twork, + enum task_work_notify_mode mode); + +struct callback_head *task_work_cancel_match(struct task_struct *task, + bool (*match)(struct callback_head *, void *data), void *data); struct callback_head *task_work_cancel(struct task_struct *, task_work_func_t); void task_work_run(void); -- Gitblit v1.6.2