kthread_canc...ed_work_sync(9)
hey bestie, you're on the kthread_canc...ed_work_sync(9) page in the Kernel API Manual π
πΈ NAME πΈ
kthread_cancel_delayed_work_sync β cancel a kthread delayed work and wait for it to finish. periodt.
β¨ SYNOPSIS β¨
bool kthread_cancel_delayed_work_sync (struct kthread_delayed_work *dwork );
that's the whole signature, no cap.
π ARGUMENTS π
dworkβ the kthread delayed work to cancel. that's the one, bestie.
π¦ DESCRIPTION π¦
okay so picture kthread_cancel_work_sync, right? this function is literally that exact same energy, but for delayed works. it's giving "cancel a kthread delayed work and wait for it to finish," and the waiting part is highkey part of the deal. no skipping ahead π
β RETURN β
true if dwork was pending, false otherwise. that's it. no mystery, no extra lore.
π SEE ALSO π
the kernel file ./kernel/kthread.c is where this whole situation lives, and these are the related pages you might wanna peek at:
kthread_should_stop(9)kthread_should_park(9)kthread_freezable_should_stop(9)kthread_func(9)kthread_data(9)kthread_probe_data(9)kthread_complete_and_exit(9)kthread_create_on_node(9)kthread_bind(9)kthread_create_on_cpu(9)kthread_unpark(9)kthread_park(9)kthread_stop(9)kthread_stop_put(9)kthread_affine_preferred(9)kthreads_update_housekeeping(9)kthread_worker_fn(9)kthread_create_worker_on_node(9)kthread_create_worker_on_cpu(9)kthread_queue_work(9)kthread_delayed_work_timer_fn(9)kthread_queue_delayed_work(9)kthread_flush_work(9)kthread_mod_delayed_work(9)kthread_cancel_work_sync(9)kthread_flush_worker(9)kthread_destroy_worker(9)kthread_use_mm(9)kthread_unuse_mm(9)kthread_associate_blkcg(9)kthread_blkcg(9)
okay bye bestie π«Ά β this page comes from ./kernel, dated October 2026, and it's literally kthread_canc...ed_work_sync(9). mwah π
π¦ 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