kthread_run_worker_on_cpu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, say hi to kthread_run_worker_on_cpu from the Kernel API Manual β€” it's literally here to create and wake a cpu bound kthread worker. slay. πŸ’…βœ¨


🌸 SYNOPSIS 🌸

struct kthread_worker * kthread_run_worker_on_cpu (int cpu , unsigned int flags , const char namefmt[] );

πŸŽ€ ARGUMENTS πŸŽ€

  • cpu β€” the CPU number. that's the whole vibe.
  • flags β€” flags that modify the default behavior of the worker.
  • namefmt β€” a printf-style name for the thread. the format is restricted to "name.*u", and the code fills in the cpu number. iykyk.

πŸ¦‹ DESCRIPTION πŸ¦‹

it's a convenient wrapper for kthread_create_worker_on_cpu followed by wake_up_process. no cap, that's the whole move. 🫢

returns the kthread_worker or ERR_PTR(-ENOMEM). iconic behavior, honestly. πŸ’–


🌈 SEE ALSO 🌈


xoxo, your source/version is ./include/linux, dated October 2026, and it's serving kthread_run_worker_on_cpu(9) realness. mwah πŸ’‹πŸŽ€βœ¨

πŸ“¦ where this page comes from