lwq_for_each_safe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 β€” temporary struct llist_node **. yes, double-pointer temporary, slay. ✨
  • _t2 β€” temporary struct llist_node *. the single-pointer temporary bestie. πŸŽ€
  • _l β€” the address of the llist_node pointer from lwq_dequeue_all. iykyk. πŸ”—
  • _member β€” the member in _n where lwq_node is 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 πŸ”₯


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