genradix_for_each(9)
π 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β agenradix_iterthat 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:
- Kernel file
./include/linux/generic-radix-tree.h Generic radix trees/sparse arrays(9)genradix_init(9)genradix_free(9)genradix_ptr(9)genradix_ptr_alloc(9)genradix_iter_init(9)genradix_iter_peek(9)genradix_iter_peek_prev(9)genradix_for_each_reverse(9)genradix_prealloc(9)
mwah π β source/version: ./include/linux Β· date: October 2026 Β· page: genradix_for_each(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