genradix_iter_peek_prev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

genradix_iter_peek_prev β€” ok so this one gets you the first entry at or below the iterator's current position πŸ’… (yes, below, it walks backwards bestie, reverse slay ✨)

This is a page from the Kernel API Manual, btw β€” we're in kernel-land now 🧚


✨ SYNOPSIS ✨

genradix_iter_peek_prev (_iter , _radix );

periodt. that's the whole call. look at her go 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • _iter β€” a genradix_iter, aka the iterator bestie doing the walking. she's already got a current position and she knows it πŸ’β€β™€οΈ
  • _radix β€” the genradix being iterated over. like, the actual tree-thing you're strolling through 🌳

πŸ’– DESCRIPTION πŸ’–

Ok so here's the tea β˜•: if no more entries exist at or below _iter's current position, this thing returns NULL. That's it. That's the whole vibe.

So like β€” you're poking backwards through your entries, and when there's literally nothing left down there, you get NULL back 😭 not an error, not a crash, just a very polite "nope, we're done here, nothing below" πŸ¦‹

ngl bestie, always check for that NULL before you go dereferencing it πŸ’€ that's not a vibe check you want to fail.

🌈 SEE ALSO 🌈

the whole friend group fr fr 🫢 go read them, they ate πŸ”₯


mwah πŸ’‹ this page lives in ./include/linux, stamped October 2026, and yes β€” the header still says genradix_iter_peek_prev(9) because she's the main character πŸ‘‘βœ¨

πŸ“¦ where this page comes from