lwq_dequeue_all(9)
π NAME π
lwq_dequeue_all β dequeue all currently enqueued objects π
okay so bestie, this is the manual page for lwq_dequeue_all(9) from the Kernel API Manual, and it's literally the "grab everything and go" function of the lock-free workqueue world β¨
πΈ SYNOPSIS πΈ
struct llist_node * lwq_dequeue_all (struct lwq *q );
like, that's the whole signature, no cap π«Ά
π¦ ARGUMENTS π¦
qβ the queue to dequeue from π this is thestruct lwq *you're pulling stuff out of, bestie
β DESCRIPTION β
So here's the vibe: lwq_dequeue_all removes and returns a linked list of llist_nodes of all the objects that were in the queue. All of them. The whole squad. π
The first on the list will be the object that was least recently enqueued β so yeah, it's giving first-in-first-out energy, the OG queue behaviour, iconic fr fr π
heads up bestie: it returns a linked list of llist_nodes, not the objects themselves β you're getting the nodes, okay? don't @ me π
π§ SEE ALSO π§
- Kernel file
./lib/lwq.cβ go read the source, iykyk πβ¨
and that's the tea π this little page lives in ./lib and it's dated October 2026, signed off with lwq_dequeue_all(9) β catch you in the kernel, bestie ππ¦
π¦ 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