lwq_dequeue_all(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the struct 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