xbc_node_get_child(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’œ

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