schedule_work_on(9)
β¨ schedule_work_on β the kernel workqueue API manual, bestie edition β¨
okay so real talk, this page is from the Kernel API Manual, section 9, and it's about schedule_work_on. it's short, it's sweet, and it's gonna make your work land exactly where you want it π
πΈ NAME πΈ
schedule_work_on β put work task on a specific cpu
like, you have a job. you have a cpu. you want the job on that cpu. that's the whole vibe.
π SYNOPSIS π
bool schedule_work_on (int cpu , struct work_struct *work );
yes the spacing is exactly like that, don't come for me, that's just how it's printed π«Ά
π¦ ARGUMENTS π¦
cpuβ cpu to put the work task on. that's it, that's the whole thing, you pick the cpu, the cpu gets the work β¨workβ job to be done. the actual thing you want done. the main character of the operation π
π DESCRIPTION π
This puts a job on a specific cpu.
literally that's what it says, and honestly? iconic. no fluff, no drama, no seventeen-paragraph backstory β you hand it a job, you hand it a cpu, it puts the job on that cpu. periodt π₯
ngl, this one's a "the name tells you everything" situation. schedule_work_on β you're scheduling work on something. the something is the cpu. no cap π
π SEE ALSO π
go read these next, bestie, they're the whole friend group π§:
- Kernel file
./include/linux/workqueue.hβ plusstruct 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(9)enable_and_queue_work(9)schedule_delayed_work_on(9)schedule_delayed_work(9)
and that's the page!! πΈ star β moment for the source path ./include/linux, dated October 2026, and yeah β this whole read was schedule_work_on(9) from the Kernel API Manual. go put your work on a cpu, bestie, you got this ππ¦π
π¦ 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