vdo_waitq_num_waiters(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… vdo_waitq_num_waiters ✨

okay so bestie, we're in the Kernel API Manual today β€” section 9, kernel-land, no cap β€” and the star of the show is vdo_waitq_num_waiters. yes it's a long name. yes it's giving "my function name is my whole personality." but it's literally the most useful little guy ever and i need you to know about it. 🫢


🌸 NAME 🌸

vdo_waitq_num_waiters β€” returns the number of waiters in a vdo_wait_queue. that's it. that's the whole job. and it ate. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

size_t vdo_waitq_num_waiters (const struct vdo_wait_queue *waitq );

one function, one parameter, zero drama. const in there is doing its little protective thing so nobody messes with your waitq while you're asking questions. respect. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • waitq β€” the vdo_wait_queue you want to query. like, the specific one. the one you're curious about. hand it over and it'll tell you what's up. πŸ“

⭐ RETURN ⭐

it returns the number of waiters in the waitq. that's the number of waiters. in the waitq. yes. counting. slay. πŸ”₯

(it comes back as a size_t, so it's an unsigned count β€” which lowkey makes sense because you cannot have negative waiters, imagine 😭)


🌈 SEE ALSO 🌈

  • the kernel file ./drivers/md/dm-vdo/wait-queue.h β€” go read it, it's the whole vibe, iykyk πŸ’œ
  • vdo_waiter_is_waiting(9) β€” for when you need to check on one specific waiter 🧚
  • vdo_waitq_init(9) β€” for when the queue is brand new and hasn't met anyone yet 🌸
  • vdo_waitq_has_waiters(9) β€” if you don't need the exact count and just want a yes/no vibe check πŸ’…

bestie note: this page is from ./drivers/md/dm-vdo, dated October 2026, and it's vdo_waitq_num_waiters(9) out of the Kernel API Manual β€” that's the whole citation, go off, cite responsibly, mwah 🫢✨
πŸ“¦ where this page comes from