vdo_waitq_num_waiters(9)
π 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β thevdo_wait_queueyou 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'svdo_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
- 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