lwq_dequeue(9)
π
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 anlwq_node. That's the member that is literally anlwq_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
- 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