put_pwq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, welcome to put_pwq(9) from the Kernel API Manual β€” the function whose whole job is literally put a pool_workqueue reference. That's it. That's the name. Slay.

πŸ¦‹ SYNOPSIS πŸ¦‹

void put_pwq (struct pool_workqueue *pwq );

πŸ’… ARGUMENTS πŸ’…

  • pwq β€” the pool_workqueue you're putting. Yes, that exact one. It's the pool_workqueue to put.

🌸 DESCRIPTION 🌸

So here's the vibe: drop a reference of pwq. If its refcnt reaches zero, schedule its destruction. Boom, cleanup era.

The caller should be holding the matching pool->lock. Not optional energy, bestie β€” matching lock, please.

πŸ’€ lock check: the caller should be holding the matching pool->lock. Don't be out here dropping refs without the matching lock.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./kernel/workqueue.c β€” plus the whole workqueue extended universe, no cap:


πŸŽ€ cute sign-off: this page comes from source ./kernel, dated October 2026, and it's still put_pwq(9) in the Kernel API Manual. Bye bestie, go hold that pool->lock πŸ’–
πŸ“¦ where this page comes from