sched_queue_work(9)
π sched_queue_work β Kernel API Manual (section 9, bestie) π
Okay so this is a page straight out of the Kernel API Manual, section 9, and it's lowkey one tiny function but she's important. Let's get into it π
β¨ NAME β¨
sched_queue_work β queue a scheduler work. That's it, that's the whole job. Iconic honestly.
πΈ SYNOPSIS πΈ
sched_queue_work (sched , wname );
Yeah the spacing is exactly like that, don't come for me π that's how it's written.
π¦ ARGUMENTS π¦
schedβ the scheduler object. Your main character of the whole operation πwnameβ the work name. Gotta know which work you're queuing, fr fr.
β DESCRIPTION β
So here's the vibe: sched_queue_work conditionally queues a scheduler work β but only if there's no reset pending or in-progress. Basically if a reset is already happening (or about to happen), she justβ¦ does not. Not today. π
Not me double-checking the reset status before doing anything β yes actually, that's literally the whole point of the function. Respect it.
π SEE ALSO π
The girls that get it, get it β here's the whole friend group π«Ά
- Kernel file
./drivers/gpu/drm/panthor/panthor_sched.c Scheduler(9)struct panthor_csg_slot(9)enum panthor_csg_priority(9)struct panthor_scheduler(9)struct panthor_syncobj_32b(9)struct panthor_syncobj_64b(9)struct panthor_queue(9)enum panthor_group_state(9)struct panthor_group(9)group_queue_work(9)sched_queue_delayed_work(9)struct panthor_group_pool(9)struct panthor_job(9)group_bind_locked(9)group_unbind_locked(9)cs_slot_prog_locked(9)cs_slot_reset_locked(9)csg_slot_sync_priority_locked(9)cs_slot_sync_queue_state_locked(9)sched_process_global_irq_locked(9)panthor_sched_report_fw_events(9)panthor_sched_report_mmu_fault(9)panthor_fdinfo_gather_group_mem_info(9)
Okay that's the page!! Live from ./drivers/gpu/drm/panthor, dated October 2026 β mwah, sending you all the love, go queue some work (but only if no reset is pending, you know the rules) π
β¨π
π¦ 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