genradix_for_each(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– genradix_for_each β€” Kernel API Manual πŸ’–

okay bestie, welcome to the genradix_for_each(9) page from the Kernel API Manual. It's giving "niche kernel iterator" and honestly? iconic.


🌸 NAME 🌸

genradix_for_each β€” iterate over an entry in a genradix.


πŸ› οΈ SYNOPSIS πŸ› οΈ

genradix_for_each (_radix , _iter , _p );

πŸŽ€ ARGUMENTS πŸŽ€

  • _radix β€” the genradix you're iterating over, periodt.
  • _iter β€” a genradix_iter that keeps track of where you are rn.
  • _p β€” pointer to the genradix entry type. yes, the pointer pointer situation πŸ’…

πŸ’« DESCRIPTION πŸ’«

Every single time the loop does its thing, _p will point to the current entry, and _iter.pos will be that current entry's index. no cap, that's the whole vibe.


πŸ‘‘ SEE ALSO πŸ‘‘

the whole squad, fr fr:


mwah πŸ’‹ β€” source/version: ./include/linux Β· date: October 2026 Β· page: genradix_for_each(9)

πŸ“¦ where this page comes from