list_private_for_each_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

list_private_for_each_entry β€” bestie, it literally iterates over a list of a given type πŸ’…


✨ SYNOPSIS ✨

list_private_for_each_entry (pos , head , member );

πŸŽ€ ARGUMENTS πŸŽ€

  • pos β€” ok so this is the type * you're gonna use as your loop cursor πŸŒ€ like, it's the little pointer that walks the walk, iykyk
  • head β€” the head for your list πŸ‘‘ your list's main character, essentially
  • member β€” the name of the list_head within the struct 🧚 you gotta tell it where inside your struct the list bits live, no cap

πŸ’– SEE ALSO πŸ’–

Kernel file ./include/linux/list_private.h Private List Primitives(9) β€” and honestly the whole friend group, they all slay 🫢:


ngl bestie the _safe variants and the _reverse variants are right there in the see-also list β€” go peek at those too, they're giving very much "there's a whole family" 🌈

πŸ“ ok that's the whole page, you ate that πŸ“

Kernel API Manual Β· from ./include/linux Β· dated October 2026 Β· and it's list_private_for_each_entry(9), periodt πŸ’œπŸ¦‹

πŸ“¦ where this page comes from