genradix_for_each_reverse(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” a genradix_iter that 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