lwq_enqueue(9)
okay so welcome to lwq_enqueue(9) from the Kernel API Manual β this is the page for adding a new item to the end of the queue, and we are keeping every crumb of detail. π
β¨ NAME β¨
lwq_enqueue β add a new item to the end of the queue.
@nβ thelwq_nodeembedded in the item to be added.@qβ thelwqto append to.
πΈ SYNOPSIS πΈ
bool lwq_enqueue (struct lwq_node *n , struct lwq *q );
π ARGUMENTS π
nβ the manual literally says-- undescribed --π so that's the whole tea for this one.qβ same situation, bestie:-- undescribed --π«
π¦ DESCRIPTION π¦
No locking is needed to append to the queue, so this can be called from any context. That's the flex. π₯ periodt.
The return type is bool, and the page says: βReturn true is the list may have previously been empty.β Yes, it says βisβ β I'm keeping it exactly as written, no cap. π
π SEE ALSO π
- Kernel file:
./include/linux/lwq.h lwq_init(9),lwq_empty(9),lwq_dequeue(9),lwq_for_each_safe(9),lwq_enqueue_batch(9)
mwah π β shipped from ./include/linux, dated October 2026. π«Ά
π¦ 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