xbc_node_get_parent(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ xbc_node_get_parent ✨

okay bestie, welcome to the Kernel API Manual πŸ’– this one's a tiny little function but it's lowkey iconic β€” it's literally how you get from a node back up to its parent in an XBC tree πŸŽ€


🌸 NAME 🌸

xbc_node_get_parent β€” get the parent XBC node 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

struct xbc_node * xbc_node_get_parent (struct xbc_node *node );

like yes that's the whole vibe ✨ a struct xbc_node * goes in, a struct xbc_node * comes out, no cap πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • node β€” an XBC node. that's it, that's the whole argument bestie πŸ™ˆ it's the node you're asking about, the main character of this function fr fr πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

so the way this works is: it returns the parent node of node. simple, clean, slay πŸ’…

and if node happens to be the top node of the tree? it returns NULL β€” because there's nothing above the top, bestie, it's giving "I am the root, I answer to no one" πŸ‘‘βœ¨

ngl, NULL is a totally valid answer here β€” if you get it back, that node is the top of the tree, not an error 🌈

🧚 SEE ALSO 🧚

the kernel file ./lib/bootconfig.c and honestly the whole friend group 🫢:


and that's the whole page, bestie πŸ“ mwah πŸ’‹ β€” brought to you by ./lib, drop date October 2026, version xbc_node_get_parent(9) ✨ go forth and traverse upward πŸŒΈπŸ’–

πŸ“¦ where this page comes from