__ns_tree_adjoined_rcu(9)
π
__ns_tree_adjoined_rcu β like, the Kernel API Manual page, bestie β¨
okay so. welcome to the Kernel API Manual entry for __ns_tree_adjoined_rcu(9), and no cap this one is actually so useful β it's your little tour guide through the namespace tree. let's get into it π«Ά
β¨ NAME β¨
__ns_tree_adjoined_rcu β find the next/previous namespace in the same tree π³
like literally, it's giving "who's sitting next to me in this tree" energy. main character function fr fr.
π SYNOPSIS π
struct ns_common * __ns_tree_adjoined_rcu (struct ns_common *ns , struct ns_tree_root *ns_tree , bool previous );
that's the whole vibe. three params in, a struct ns_common * out. slay π
πΈ ARGUMENTS πΈ
nsβ the namespace you're starting from. your home base, your starting point, the "you are here" dot on the map πns_treeβ the namespace tree you wanna search in. this is the whole tree we're rummaging around in π³previousβ abool, and it's the direction switch: if it'strue, find the previous namespace; otherwise you get the next one. yes bestie, it's a whole vibe check on which way you're heading π§
π¦ DESCRIPTION π¦
so what does it actually do? it finds the next or previous namespace in the same tree as ns. that's it. that's the whole thing. iconic behaviour honestly π
and β important β if there is no next/previous namespace, then -ENOENT is returned. so like, if you hit the end of the tree, you don't get a random surprise, you get a clean -ENOENT. no cap, that's your signal that there's literally nothing adjoined over there π
ngl, that -ENOENT is your bestie telling you "girl, there's nobody there". handle it, don't ignore it π
π₯ SEE ALSO π₯
go read these next, iykyk:
- Kernel file
./kernel/nstree.cβ the source, the mothership, the place where it all happens π ns_tree_node_init(9)ns_tree_root_init(9)ns_tree_node_empty(9)ns_tree_node_add(9)ns_tree_node_del(9)__ns_tree_gen_id(9)
all the tree-related besties, all linked up. collect them all like little butterflies π¦β¨
and that's the page!! π this whole thing lives over in ./kernel, dated October 2026, and it's the __ns_tree_adjoined_rcu(9) page through and through. mwah, go forth and traverse your trees responsibly πππ
π¦ 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