radix_tree_for_each_tagged(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… radix_tree_for_each_tagged(9) β€” like, the Kernel API Manual page, bestie πŸŽ€

Okay so real talk, this is radix_tree_for_each_tagged from the Kernel API Manual, and it's genuinely one of those little macro besties that does a LOT while looking like a single line. Sit down, grab a strawberry πŸ“, and let's get into it.


✨ NAME ✨

radix_tree_for_each_tagged β€” iterate over tagged slots 🌸

Like, that's the whole vibe. It walks the slots that have a tag on them. Periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

radix_tree_for_each_tagged (slot , root , iter , start , tag );

Yes bestie, that's the exact call, spaces and all β€” I'm not touching it, do not @ me πŸ’…


πŸ‘‘ ARGUMENTS πŸ‘‘

  • slot β€” the void** variable for pointer to slot. It's a pointer-to-a-pointer situation, iykyk. πŸ”₯
  • root β€” the struct radix_tree_root pointer. The main character of your tree, fr fr.
  • iter β€” the struct radix_tree_iter pointer. Your little iterator bestie that keeps track of where you are.
  • start β€” iteration starting index. Where you're kicking things off at. ⭐
  • tag β€” tag index. Which tag you're filtering by, no cap.

🌈 DESCRIPTION 🌈

So here's the tea, bestie: slot points to radix tree slot, and iter->index contains its index.

That's it. That's the whole description. Not me being dramatic, that's literally what the manpage says 😭 Keep it in your notes: slot β†’ the slot, iter->index β†’ its index. Iconic, minimal, ate. 🫢


πŸ’– SEE ALSO πŸ’–

Okay so this thing has SO many friends, it's giving main character with a whole group chat 🧚 Go check these out:


πŸ’€ Reminder bestie: don't sleep on the _protected and _retry variants up there β€” they're in the SEE ALSO for a reason, so go read them before you go being brave in kernel code. πŸ™ˆ

That's the whole page, no skips, no cuts πŸ’œ And for the cute sign-off: this little number lives under ./include/linux, it's stamped October 2026, and it's filed under radix_tree_for_each_tagged(9) in the Kernel API Manual. Slay, bye! 🌟

πŸ“¦ where this page comes from