kthread_flush_worker(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a struct 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:


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