task_work_cancel_match(9)
Okay bestie, welcome to the task_work_cancel_match(9) page from the Kernel API Manual. This one is literally about canceling a pending work that was added by task_work_add() β no cap, that's the whole vibe. π
β¨ NAME β¨
task_work_cancel_match β cancel a pending work added by task_work_add() π«Ά
π¦ SYNOPSIS π¦
Hereβs the exact signature, bestie β do not freestyle it:
struct callback_head * task_work_cancel_match (struct task_struct *task
, bool (*match)(struct callback_head *, void *data) , void *data );
π ARGUMENTS π
Three little args, all iconic:
taskβ the task which should execute the work. Type:struct task_struct *.matchβ match function to call. Type:bool (*match)(struct callback_head *, void *data).dataβ data to be passed in to match function. Type:void *.
π RETURN π
Return type: struct callback_head *.
The found work or NULL if not found. Thatβs it β found work or NULL, no secret third option. π
π SEE ALSO π
Kernel file ./kernel/task_work.c β plus these besties: task_work_add(9), task_work_cancel_func(9), task_work_cancel(9), task_work_run(9). Go read them, iykyk. π
Catch u later, bestie! π This pageβs source/version is ./kernel, dated October 2026, and itβs literally the task_work_cancel_match(9) page β periodt. π
π¦ 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