plist_for_each_entry_safe(9)
β¨ NAME β¨
okay so bestie, this is the manual page for plist_for_each_entry_safe(9) in the Kernel API Manual π«Ά it's literally here to iterate safely over list of given type, and it's giving βyour loop can handle a list entry getting removedβ energy π
πΈ SYNOPSIS πΈ
the whole call looks like this, no cap:
plist_for_each_entry_safe (pos , n , head , m );
π ARGUMENTS π
posβ thetype *to use as a loop counter πnβ anothertype *, this one for temporary storage ποΈheadβ the head for your list πmβ the name of thelist_headwithin the struct π§
π¦ DESCRIPTION π¦
This one iterates over a list of the given type, and it's the safe version: it's safe against removal of list entry while you're looping. That's the whole vibe, fr fr π
π SEE ALSO π
the kernel file is literally ./include/linux/plist.h π and you should also go peek at these, bestie:
PLIST_HEAD_INIT(9)PLIST_HEAD(9)PLIST_NODE_INIT(9)plist_head_init(9)plist_node_init(9)plist_for_each(9)plist_for_each_continue(9)plist_for_each_safe(9)plist_for_each_entry(9)plist_for_each_entry_continue(9)plist_head_empty(9)plist_node_empty(9)plist_first_entry(9)plist_last_entry(9)plist_next(9)plist_prev(9)plist_first(9)plist_last(9)
okay that's the page!! byeee π
this one comes from ./include/linux and is dated October 2026, and it's all about plist_for_each_entry_safe(9) π«Άβ¨
π¦ 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