xbc_node_get_next(9)
β¨ xbc_node_get_next β¨
okay so real talk, this one's called xbc_node_get_next and it lives in the Kernel API Manual β yes, that Kernel API Manual, the one your cs professor keeps bringing up at parties π it's a tiny little helper that gets you the next sibling XBC node, and honestly? iconic behavior.
πΈ SYNOPSIS πΈ
struct xbc_node * xbc_node_get_next (struct xbc_node *node );
that's it. that's the whole vibe. one function, one arg, no drama π
π¦ ARGUMENTS π¦
nodeβ an XBC node. like, literally just an XBC node. that's the whole description bestie, it's giving minimal effort and we respect it π«Ά
π DESCRIPTION π
so what does it do? it returns the NEXT sibling node of node. boom. that's the function. main character energy, no notes β¨
if node has no next sibling, it returns NULL. simple enough, right?
β οΈ okay but listen, this is the important part: even if this returnsNULL, that does not meannodehas no siblings. do not come for me. the function is just telling you there's nothing after it in the sibling chain β it is absolutely not making any promises about what came before. so you're gonna have to check whether the parent's child node isnodeor not, yourself. yes, you. manually. with your own two hands π (and yep, the original really does say "you also has to check" β we keep the lore intact, typos and all π)
π₯ SEE ALSO π₯
kernel file ./lib/bootconfig.c β go read it, it's lowkey the source of truth:
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_child(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)
that's the whole friend group, go say hi to all of them π iykyk
and that's the page!! π brought to you by ./lib, dated October 2026, and filed under xbc_node_get_next(9) because we keep our citations cute and correct π love u, go traverse some nodes 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