radix_tree_tag_get(9)
β¨ radix_tree_tag_get(9) β¨
okay so this is a page from the Kernel API Manual bestie, and it's literally about checking whether a tag is set on a radix tree node π
πΈ NAME πΈ
radix_tree_tag_get β get a tag on a radix tree node
like, you're asking the tree "hey girl, is this tag on?" π
π¦ SYNOPSIS π¦
int radix_tree_tag_get (const struct radix_tree_root *root , unsigned
long index , unsigned int tag );
yep that's the whole vibe. three args, one int coming back at you β¨
π ARGUMENTS π
rootβ the radix tree root π³ like, the whole tree you're poking atindexβ the index key π the specific spot you care abouttagβ the tag index, and listen: it's< RADIX_TREE_MAX_TAGSβ οΈ don't be out here passing anything bigger, ok?
π DESCRIPTION π
so here's what you get back, and it's giving very binary π:
0β tag not present or not set π1β tag set π₯
β οΈ no cap, read this twice: the return value of this function may not be relied on, even if the RCU lock is held, unless tag modification and node deletion are excluded from concurrency. like... the answer is a vibe check, not a promise, unless you've locked down the tag-modification and node-deletion girlies too π«Ά this is the important part, don't skip it.
π SEE ALSO π
the whole friend group, icymi:
- Kernel file
./lib/radix-tree.c radix_tree_find_next_bit(9)radix_tree_shrink(9)__radix_tree_create(9)radix_tree_insert(9)__radix_tree_lookup(9)radix_tree_lookup_slot(9)radix_tree_lookup(9)__radix_tree_replace(9)radix_tree_replace_slot(9)radix_tree_iter_replace(9)radix_tree_tag_set(9)radix_tree_tag_clear(9)radix_tree_iter_tag_clear(9)radix_tree_next_chunk(9)radix_tree_gang_lookup(9)radix_tree_gang_lookup_tag(9)radix_tree_gang_lookup_tag_slot(9)radix_tree_iter_delete(9)radix_tree_delete_item(9)radix_tree_delete(9)radix_tree_tagged(9)idr_preload(9)idr_destroy(9)
and that's the page!! mwah π this one lives in ./lib and it's dated October 2026 β radix_tree_tag_get(9), stan her, she's iconic π§ββοΈπ
π¦ 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