trace_sched...k_queue_work(9)
β¨ trace_sched...k_queue_work(9) β¨
okay so bestie, this is a page straight out of the Kernel API Manual, and honestly? it's a short one, but it's iconic. it's about a tracepoint. a tracepoint. the little "hey, something happened!" wink the kernel gives you. let's get into it π«Ά
π NAME π
trace_sched_kthread_work_queue_work β the function that gets called when a work gets queued π
like, literally, that's the whole thing. that's the name. no cap.
πΈ SYNOPSIS πΈ
void trace_sched_kthread_work_queue_work (struct kthread_worker *worker
, struct kthread_work *work );
that's the whole signature, copy-pasted exactly, character for character, because we do not mess with code in this house π
π¦ ARGUMENTS π¦
workerβ pointer to thekthread_worker. like, the actual worker thread thing that's doing the work. that's the one π§workβ pointer tostruct kthread_work. the unit of work itself, chillin' in struct form β¨
two args. that's it. that's the whole lineup. two little pointers out here doing main character energy π
π DESCRIPTION π
so here's the vibe: this event fires when a work is queued. and the details matter, so listen up π
it occurs when a work is queued immediately, or once a delayed work is actually queued β and yes, that means once the delay has been reached, i.e. once the waiting is done and the work is for real actually queued. ie: once the delay has been reached. fr fr, keep that part π
so likeβ¦ not when you schedule the delay. when the delay ends. big difference. lowkey important. β
π₯ SEE ALSO π₯
- Kernel file
./include/trace/events/sched.hβ that's where the magic lives, go look at it, it's giving source-of-truth π trace_sched_kthread_work_execute_start(9)trace_sched_kthread_work_execute_end(9)trace_sched_prepare_exec(9)
all the siblings. the whole little tracepoint family. obsessed π
bestie reminder: this page is literally just describing a tracepoint wrapper, so don't go inventing behaviour for it. it fires, it traces, it slays. periodt β¨
and that's the page! π credit where it's due: it comes from ./include/trace/events, dated October 2026, and the footer reprints the header as trace_sched...k_queue_work(9) β same energy at both ends, we love a symmetric icon π
π«Ά bye 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