radix_tree_for_each_tagged(9)
π 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β thevoid**variable for pointer to slot. It's a pointer-to-a-pointer situation, iykyk. π₯rootβ thestruct radix_tree_rootpointer. The main character of your tree, fr fr.iterβ thestruct radix_tree_iterpointer. 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:
- Kernel file
./include/linux/radix-tree.hstruct radix_tree_iter(9) Radix-tree synchronization(9)radix_tree_deref_slot(9)radix_tree_deref_slot_protected(9)radix_tree_deref_retry(9)radix_tree_exception(9)radix_tree_iter_init(9)radix_tree_next_chunk(9)radix_tree_iter_lookup(9)radix_tree_iter_retry(9)radix_tree_iter_resume(9)radix_tree_chunk_size(9)radix_tree_next_slot(9)radix_tree_for_each_slot(9)
π Reminder bestie: don't sleep on the_protectedand_retryvariants 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
- 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