xbc_node_get_child(9)
π xbc_node_get_child β the kernel API manual, bestie edition
okay so real quick, the manual page is literally called xbc_node_get_child(9) and it lives in the Kernel API Manual, and yes we're getting into it π
πΈ NAME πΈ
xbc_node_get_child β get the child XBC node. that's it. that's the whole name. iconic brevity π
β¨ SYNOPSIS β¨
struct xbc_node * xbc_node_get_child (struct xbc_node *node );
copy it exactly like that, spacing and all β no cap, the compiler is not forgiving π
π¦ ARGUMENTS π¦
nodeβ an XBC node. that's your starting point, your main character, the node you're asking about π«Ά
π₯ DESCRIPTION π₯
okay so here's the tea: xbc_node_get_child returns the first child node of node. that's the whole job. it's giving "eldest sibling" energy π
and if the node has no child? it returns NULL. no child, no node, no drama, just NULL π so like, always check before you dereference, bestie, that's the vibe check π§
π SEE ALSO π
all the sibling functions you should also know, because the kernel file ./lib/bootconfig.c is a whole friend group and you can't just know one of them π
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_parent(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)
fun fact from the original page: that whole list is coming at you from the kernel file ./lib/bootconfig.c. go read it, iykyk π
π sign-off π
this little masterpiece came out of ./lib, dated October 2026, and it's filed under xbc_node_get_child(9). slay, periodt, go traverse some nodes π
β¨π·
π¦ 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