plist_for_each_safe(9)
π
plist_for_each_safe(9) β Kernel API Manual, but make it cute β¨
okay so bestie, this is the plist_for_each_safe(9) page from the Kernel API Manual, and itβs giving very specific βsafe loopβ energy. no cap.
πΈ NAME πΈ
plist_for_each_safe β iterate safely over a plist of given type
π¦ SYNOPSIS π¦
plist_for_each_safe (pos , n , head );
π ARGUMENTS π
posβ thetype *to use as a loop counternβ anothertype *to use as temporary storageheadβ the head for your list
π DESCRIPTION π
Bestie, itβs literally this: iterate over a plist of given type, safe against removal of list entry. thatβs the whole vibe πβ¨
π₯ SEE ALSO π₯
Kernel file ./include/linux/plist.h
the whole SEE ALSO squad, in order:
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_entry(9)plist_for_each_entry_continue(9)plist_for_each_entry_safe(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)
thatβs the tea: source/version line is ./include/linux, the date is October 2026, and the page is plist_for_each_safe(9) β bye bestie, slay your kernel code πβ¨
π¦ 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