kthread_unpark(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 by kthread_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