trace_sched...k_queue_work(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 the kthread_worker. like, the actual worker thread thing that's doing the work. that's the one 🧚
  • work β€” pointer to struct 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 πŸ”₯

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