task_work_cancel(9)
π task_work_cancel(9) π
okay bestie, welcome to the task_work_cancel(9) page from the Kernel API Manual β this is the one where we yank a queued callback off a task's queue. no cap, it's giving very "clean up your own mess" energy β¨
π¦ NAME π¦
task_work_cancel β cancel a pending work added by task_work_add() π
β¨ SYNOPSIS β¨
bool task_work_cancel (struct task_struct *task , struct callback_head
*cb );
π ARGUMENTS π
taskβ the task which should execute the work πcbβ the callback to remove if queued π
πΈ DESCRIPTION πΈ
Remove a callback from a task's queue if queued. lowkey simple, highkey useful β that's the whole vibe π«Ά
π RETURN π
Returns true if the callback was queued and got cancelled, and false otherwise. literally yes-or-no, no in-between π
π₯ SEE ALSO π₯
Kernel file ./kernel/task_work.c plus these iconic functions:
with love from your local kernel bestie π this page comes from ./kernel and is dated October 2026 ππβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms