kthread_del...ork_timer_fn(9)
π kthread_del...ork_timer_fn(9)
okay so real talk, this is a page from the Kernel API Manual and it's about one tiny little callback that honestly has main character energy for something so small β¨
π NAME π
kthread_delayed_work_timer_fn β bestie, this is the callback that queues up the associated kthread delayed work the moment the timer expires. that's it. that's the whole job. and it does it flawlessly π
β¨ SYNOPSIS β¨
void kthread_delayed_work_timer_fn (struct timer_list *t );
literally one argument, no cap. very demure, very mindful π¦
πΈ ARGUMENTS πΈ
tβ pointer to the expired timer π°οΈ like, the timer that just went off. that's the whole vibe.
π DESCRIPTION π
so the format of this function is defined by struct timer_list β that struct is the blueprint, the moment, the blueprint-of-the-moment π«Ά
and listen, important caveat incoming: it should have been called from an irqsafe timer with irq already off π₯ like, that's the contract, that's the environment it expects to wake up in. don't be out here calling it in some other context, it's not built for that π
π SEE ALSO π
the kernel file is ./kernel/kthread.c and honestly the whole friend group is here, so let's give everyone their moment π
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_queue_delayed_work(9)kthread_flush_work(9)kthread_mod_delayed_work(9)kthread_cancel_work_sync(9)kthread_cancel_delayed_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)
like, the entire roster. squad goals fr fr π
and that's the page!! sign-off time π this one lives under ./kernel, and the version stamp says October 2026 β so mark your calendars bestie, iconic behavior only ππ
π¦ 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