xbc_find_value(9)
π NAME π
hiii bestie, welcome to xbc_find_value(9) from the Kernel API Manual β today we're finding values in the XBC tree and it's giving main-character energy π
β¨
xbc_find_value β Find a value which matches the key. No cap, that's the whole assignment. π
β¨ SYNOPSIS β¨
const char * xbc_find_value (const char *key , struct xbc_node **vnode
);
π ARGUMENTS π
keyβ Search key. This is the key you're matching against, bestie. πvnodeβ A container pointer of XBC value node. The found value node gets stored in*vnode. π«Ά
π DESCRIPTION π
Okay so picture the whole of XBC tree, right? This searches a value whose key matches key from whole of XBC tree and returns the value if found. The found value node is stored in *vnode. Simple, iconic, slay. πΈ
ngl, there's a little plot twist: Note that this can return 0-length string and storeNULLin*vnodefor key-only (non-value) entry. It's not a bug, it's just the vibe for that case. π« π
π¦ SEE ALSO π¦
Kernel file ./include/linux/bootconfig.h β go peek, then go click these besties:
xbc_calc_checksum(9)xbc_node_is_value(9)xbc_node_is_key(9)xbc_node_is_array(9)xbc_node_is_leaf(9)xbc_find_node(9)xbc_node_get_subkey(9)xbc_array_for_each_value(9)xbc_node_for_each_child(9)xbc_node_for_each_subkey(9)xbc_node_for_each_array_value(9)xbc_node_for_each_key_value(9)xbc_for_each_key_value(9)xbc_node_compose_key(9)
bye bestie π this pageβs source/version is ./include/linux, and the date is October 2026 β now go find those values, periodt. πβ¨
π¦ 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