kthread_run_worker(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME β€” kthread_run_worker(9) from the Kernel API Manual, hiiii ✨

Okay bestie, welcome to the kthread_run_worker(9) page from the Kernel API Manual 🫢 This one’s literally all about how to create and wake a kthread worker.


✨ SYNOPSIS ✨

No cap, here’s the exact signature, character for character:

kthread_run_worker (flags , namefmt , ... );

πŸŽ€ ARGUMENTS πŸŽ€

  • flags β€” flags that modify the default behavior of the worker πŸ‘‘
  • namefmt β€” a printf-style name for the thread 🌸
  • ... β€” variable arguments, bestie ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

So the vibe is: this is a convenient wrapper for kthread_create_worker followed by wake_up_process πŸ”₯

It returns the kthread_worker or ERR_PTR(-ENOMEM) πŸ’–


πŸ’œ SEE ALSO πŸ’œ


Signed off with πŸ’– from ./include/linux, dated October 2026, on the kthread_run_worker(9) page β€” bye bestie, slay your kernel threads responsibly πŸŽ€βœ¨

πŸ“¦ where this page comes from