kthread_unpark(9)
π kthread_unpark(9) π
okay bestie, welcome to the Kernel API Manual β¨ this one's a lil function page and it's literally so straightforward, you're gonna eat this up.
πΈ NAME πΈ
kthread_unpark β unpark a thread created by kthread_create(). that's it. that's the whole vibe check π
β¨ SYNOPSIS β¨
void kthread_unpark (struct task_struct *k );
no cap, that's the whole signature. void return, one arg, we move π«Ά
π ARGUMENTS π
kβ the thread created bykthread_create. yes, that thread. the one you're un-parking. give it here π
π¦ DESCRIPTION π¦
so here's the tea, bestie: this function sets kthread_should_park for k to return false, wakes it up, and then waits for it to return. like, it doesn't just fire and forget β it's a whole "i woke you up and now i'm standing here until you're actually back" situation. main character energy, honestly π
and if the thread is marked percpu, then it's bound to the cpu again. yep β percpu threads get re-bound. no skipping that step π
ngl this one blocks until the thread comes back, so don't be surprised when it hangs around for a sec. it's doing its job, bestie π
π SEE ALSO π
okay this list is LONG but we're listing every single one, no skipping, periodt π«Ά
Kernel file ./kernel/kthread.c plus: kthread_should_stop(9), kthread_should_park(9), kthread_freezable_should_stop(9), kthread_func(9), kthread_data(9), kthread_probe_data(9), kthread_complete_and_exit(9), kthread_create_on_node(9), kthread_bind(9), kthread_create_on_cpu(9), kthread_park(9), kthread_stop(9), kthread_stop_put(9), kthread_affine_preferred(9), kthreads_update_housekeeping(9), kthread_worker_fn(9), kthread_create_worker_on_node(9), kthread_create_worker_on_cpu(9), kthread_queue_work(9), kthread_delayed_work_timer_fn(9), kthread_queue_delayed_work(9), kthread_flush_work(9), kthread_mod_delayed_work(9), kthread_cancel_work_sync(9), kthread_cancel_delayed_work_sync(9), kthread_flush_worker(9), kthread_destroy_worker(9), kthread_use_mm(9), kthread_unuse_mm(9), kthread_associate_blkcg(9), kthread_blkcg(9) π
like, go read kthread_park(9) first if you're confused β they're literally a matching set, iykyk π₯
and that's the page!! source is ./kernel, dated October 2026 β mwah, slay, go unpark some threads 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