xbc_node_find_value(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a 0-length string and stores NULL in *vnode if 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