xbc_node_find_value(9)
π xbc_node_find_value(9) β like, the Kernel API Manual entry you actually wanna read π
okay so bestie, welcome to the Kernel API Manual β¨ β yes the whole manual β and today's main character is xbc_node_find_value(9). it finds stuff. it returns strings. it's giving search-engine-but-make-it-bootconfig. let's go π¦
β¨ NAME β¨
xbc_node_find_value β find a value node which matches given key ππ
πΈ SYNOPSIS πΈ
const char * xbc_node_find_value (struct xbc_node *parent , const char
*key , struct xbc_node **vnode );
literally that's the whole vibe. one function, three args, zero drama β¨
π ARGUMENTS π
parentβ an XBC node π«Ά like, the node we're poking around under in the first place.keyβ a key string π the thing we're hunting for.vnodeβ a container pointer of found XBC node π¦ that's where the found node gets dropped off.
π DESCRIPTION π
so here's the tea β: this bad boy searches a value node under parent whose (parent) key node matches key, stores it in *vnode, and returns the value string. periodt π
and like, plot twist β the key can contain several words jointed with '.' π yes, dotted keys, we love a compound key moment π¦
if parent is NULL, this searches the node from whole tree π³ (yes, the whole tree, main character energy fr fr).
return the value string if a matched key found β¨ return NULL if no node is matched π
β οΈ okay but listen β heads up bestie: this returns a0-length string and storesNULLin*vnodeif the key has no value. no cap, that's just how it is π
and also π it will return the value of the first entry if the value is an array. first one ate and left no crumbs π
π SEE ALSO π
kernel file ./lib/bootconfig.c and, like, 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_parent(9), xbc_node_get_child(9), xbc_node_get_next(9), xbc_node_get_data(9), xbc_node_find_subkey(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 page, you're so welcome π«Ά bye bestie, go read some bootconfig πβ¨ππ¦πΈπ
sign-off szn π§: this lil masterpiece lives in ./lib, dated October 2026, and it's filed under xbc_node_find_value(9) β iykyk βπ
π¦ 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