schedule_delayed_work_on(9)
π schedule_delayed_work_on(9) π
okay so bestie, welcome to the Kernel API Manual β this little page is all about schedule_delayed_work_on, and honestly? she's that girl. β¨
πΈ NAME πΈ
schedule_delayed_work_on β queue work in per-CPU workqueue on CPU after delay
like, you hand her a job, a CPU, and a lil wait time, and she delivers. no cap. π«Ά
β¨ SYNOPSIS β¨
bool schedule_delayed_work_on (int cpu , struct delayed_work *dwork ,
unsigned long delay );
look at her. iconic signature. returns a bool and everything. π
π ARGUMENTS π
cpuβ cpu to use π (yes, that cpu, the one you picked, main character energy fr fr)dworkβ job to be done π (the actual work, the whole point, the moment)delayβ number of jiffies to wait πΈ (jiffies!! not seconds!! don't come for me, that's just how the kernel counts time)
π¦ DESCRIPTION π¦
so here's the vibe: after waiting for a given time, this puts a job in the system per-CPU workqueue on the specified CPU. that's it. that's the whole thing. she waits, then she works. β
lowkey obsessed with how simple that is. no drama, no extra steps, just wait β queue β slay. π₯
π SEE ALSO π
- Kernel file
./include/linux/workqueue.hπ struct workqueue_attrs(9)work_pending(9)delayed_work_pending(9)alloc_workqueue(9)devm_alloc_workqueue(9)alloc_workqueue_lockdep_map(9)alloc_ordered_workqueue_lockdep_map(9)alloc_ordered_workqueue(9)queue_work(9)queue_delayed_work(9)mod_delayed_work(9)schedule_work_on(9)schedule_work(9)enable_and_queue_work(9)schedule_delayed_work(9)
the whole friend group fr. go read them, iykyk π
and that's the page!! courtesy of ./include/linux, dated October 2026, page schedule_delayed_work_on(9) β mwah, go queue something cute bestie π§π
π¦ 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