lwq_for_each_safe(9)
π¦ lwq_for_each_safe(9) β Kernel API Manual π¦
π NAME π
okay so lwq_for_each_safe is the icon that lets you iterate over detached queue allowing deletion β yes, deletion included, bestie. π
β¨ SYNOPSIS β¨
lwq_for_each_safe (_n , _t1 , _t2 , _l , _member );
π ARGUMENTS π
_nβ the iterator variable. main character energy for the loop, fr fr. π_t1β temporarystruct llist_node **. yes, double-pointer temporary, slay. β¨_t2β temporarystruct llist_node *. the single-pointer temporary bestie. π_lβ the address of thellist_nodepointer fromlwq_dequeue_all. iykyk. π_memberβ the member in_nwherelwq_nodeis found. literally the spot. π
πΈ DESCRIPTION πΈ
Iterate over members in a dequeued list. If the iterator variable is set to NULL, the iterator removes that entry from the queue. that's the safe-delete moment, no cap β the iterator variable being NULL is what triggers the removal. π«Άβ¨
π₯ SEE ALSO π₯
- Kernel file
./include/linux/lwq.h lwq_init(9)lwq_empty(9)lwq_dequeue(9)lwq_enqueue(9)lwq_enqueue_batch(9)
source/version: ./include/linux π dated: October 2026 πΈ from the Kernel API Manual page for lwq_for_each_safe(9) β bye bestie, you ate πβ¨π
π¦ 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