xbc_node_find_subkey(9)
πΈ xbc_node_find_subkey β Kernel API Manual energy β¨
okay so bestie, welcome to the Kernel API Manual, section 9, and today's main character is xbc_node_find_subkey. she's a little lookup function and honestly she eats π
β¨ NAME β¨
xbc_node_find_subkey β find a subkey node which matches a given key π
π¦ SYNOPSIS π¦
struct xbc_node * xbc_node_find_subkey (struct xbc_node *parent , const
char *key );
π ARGUMENTS π
parentβ an XBC node. yeah, just a node. she's the starting point π«Άkeyβ a key string. the thing you're hunting for π
π₯ DESCRIPTION π₯
so what she does is: she searches for a key node under parent that matches key. literally that's the whole vibe β¨
and here's the cute part β the key can contain several words jointed with '.'. yes, jointed, that's the word, we're keeping it fr fr π
plot twist: if parent is NULL, she doesn't just give up β she searches the node from the whole tree. main character energy, she expands her search radius ππ
and if no node is matched? she returns NULL. no match, no node, that's the rule π
π SEE ALSO π
kernel file ./lib/bootconfig.c and all her besties:
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_next(9)xbc_node_get_data(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 page bestie π she lives in ./lib and she's stamped October 2026 β go forth and find those subkeys, ily, slay π§πΈ
π¦ 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