xbc_node_get_parent(9)
β¨ 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 π«Ά:
xbc_prepend_embedded_cmdline(9)xbc_embedded_cmdline_applied(9)bootconfig_cmdline_requested(9)xbc_get_info(9)xbc_root_node(9)xbc_node_index(9)xbc_node_get_child(9)xbc_node_get_next(9)xbc_node_get_data(9)xbc_node_find_subkey(9)xbc_node_find_value(9)xbc_node_compose_key_after(9)xbc_node_find_next_leaf(9)xbc_node_find_next_key_value(9)xbc_snprint_cmdline(9)_xbc_exit(9)xbc_init(9)
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
- 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