list_for_ea...ry_safe_from(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… list_for_ea...ry_safe_from(9) πŸ’…

okay so this page is from the Kernel API Manual, and the actual function it’s hyping is list_for_each_entry_safe_from. the title is doing that truncated list_for_ea...ry_safe_from(9) thing, but we move. this is the bestie-approved breakdown, no cap. 🫢


✨ NAME ✨

list_for_each_entry_safe_from β€” iterate over list from current point, safe against removal. like, you’re looping through the list from where you’re currently at, and the whole thing is safe against removal of the list entry. iconic behavior, honestly. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

the whole signature, exactly as written, spaces and all:

list_for_each_entry_safe_from (pos , n , head , member );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • pos β€” the type * to use as a loop cursor. this is your main-character cursor, bestie. πŸ’–
  • n β€” another type * to use as temporary storage. your little temporary-storage sidekick. πŸŽ€
  • head β€” the head for your list. the literal head of the operation. πŸ‘‘
  • member β€” the name of the list_head within the struct. yep, that’s the field name. ✨

🌸 DESCRIPTION 🌸

okay so here’s the tea, fr fr: iterate over list of given type from current point, safe against removal of list entry. you start at the current point, you loop over the list of the given type, and it’s safe against removal of the list entry. that’s the whole flex. no cap. πŸ’…βœ¨

πŸ’œ SEE ALSO πŸ’œ

okay so the Kernel file ./tools/include/linux/list.h is in the SEE ALSO mix, and the whole squad is lowkey iconic:


that’s the whole page, bestie! πŸ’– it’s from the Kernel API Manual, source/version line energy: ./tools/include/linux, dated October 2026, and the title is list_for_ea...ry_safe_from(9). periodt. 🫢✨

πŸ“¦ where this page comes from