kthread_flush_worker(9)
π kthread_flush_worker(9) π
okay so bestie, welcome to the Kernel API Manual page for kthread_flush_worker(9) β yes, this kernel-thread function is having a main character moment. It's short, it's sweet, and it's literally just here to wait. no cap. π«Άβ¨
πΈ NAME πΈ
kthread_flush_worker β flush all current works on a kthread_worker π
β¨ SYNOPSIS β¨
void kthread_flush_worker (struct kthread_worker *worker );
π ARGUMENTS π
workerβ worker to flush. That's the one and only argument, bestie; it's astruct kthread_worker *, and it's the thing getting flushed. π
π¦ DESCRIPTION π¦
okay so here's the vibe: wait until all currently executing or pending works on worker are finished. That's it. That's the whole function. It waits for the currently executing ones and the pending ones to be finished, and then you can go about your day. periodt. π
β¨
π SEE ALSO π
Kernel file: ./kernel/kthread.c β and the whole kthread friend group is linked here, iykyk:
- Kernel file:
./kernel/kthread.c 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_unpark(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_destroy_worker(9)kthread_use_mm(9)kthread_unuse_mm(9)kthread_associate_blkcg(9)kthread_blkcg(9)
okay that's the whole page, bestie π«Ά the source/version bit is ./kernel, the date is October 2026, and the footer title is kthread_flush_worker(9). 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