kthread_run_worker_on_cpu(9)
π 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 π
- Kernel file
./include/linux/kthread.h kthread_create(9)kthread_run(9)kthread_run_on_cpu(9)kthread_run_worker(9)
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
- 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