lwq_dequeue(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lwq_dequeue(9) β€” Kernel API Manual πŸ’…


🌸 NAME 🌸

lwq_dequeue β€” dequeue first (oldest) entry from lwq. Short name, main character energy, no cap. πŸ’–

✨ SYNOPSIS ✨

lwq_dequeue (q , type , member );

The spaces in that signature are staying, bestie β€” character for character, periodt. πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • q β€” the queue to dequeue from. The queue in question, the one we're pulling from. πŸ‘‘
  • type β€” the type of object to return. Tell it what kind of object you want back. πŸ¦‹
  • member β€” them member in returned object which is an lwq_node. That's the member that is literally an lwq_node. πŸ”₯

🌈 DESCRIPTION 🌈

Okay so lwq_dequeue removes a single object from the lwq and returns it. One (1) object, bestie β€” not a batch, not the whole queue. πŸ’€

⚠️ This will take a spinlock, so it must always be called in the same context β€” typically process context. (The page says 'typcially process contet' and honestly same, but the rule is real: same context, always.) 😭

🫢 SEE ALSO 🫢

Kernel file: ./include/linux/lwq.h β€” the whole squad lives there:

All the linked besties, iykyk. 🌈


Source/version: ./include/linux Β· date: October 2026 β€” mwah, kisses from the kernel docs πŸ’‹βœ¨

πŸ“¦ where this page comes from