genradix_for_each_reverse(9)
β¨ genradix_for_each_reverse(9) β¨
okay so bestie, welcome to the Kernel API Manual π β this is the page about genradix_for_each_reverse, and it's literally the reverse-order version of looping through a genradix, no cap π«Ά
πΈ NAME πΈ
genradix_for_each_reverse β iterate over entry in a genradix, reverse order π
π SYNOPSIS π
genradix_for_each_reverse (_radix , _iter , _p );
π¦ ARGUMENTS π¦
_radixβ the genradix you're iterating over, bestie π_iterβ agenradix_iterthat keeps track of where you are right now π_pβ a pointer to the genradix entry type π
β DESCRIPTION β
So here's the tea β: on every single iteration, _p will point to the current entry, and _iter.pos will be the current entry's index. Periodt. π₯
Like, every loop around the block, _p = the current entry, _iter.pos = that entry's index. That's it, that's the whole vibe β¨
π SEE ALSO π
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(9), genradix_prealloc(9) πΈ
k bye bestie, mwah π β this page lives in ./include/linux, dated October 2026, and it's <rainbow>genradix_for_each_reverse(9)</rainbow> fr fr π§π
π¦ 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