xbc_for_each_key_value(9)
β¨ xbc_for_each_key_value β¨ (that's section 9 of the Kernel API Manual, bestie!)
okay so real talk, this one is a kernel API page and it's giving "tiny function, huge main character energy" π it lives in the Kernel API Manual, section 9, and honestly? it's a little gem.
πΈ NAME πΈ
xbc_for_each_key_value β the one that iterates key-value pairs, fr fr π₯
π SYNOPSIS π
xbc_for_each_key_value (knode , value );
that's it. that's the whole vibe. two args, zero drama β¨
π¦ ARGUMENTS π¦
knodeβ the iterated key node ποΈ this is where the current key node lands while you're loopingvalueβ the iterated value string π§΅ and this is where the matching value string lands
π DESCRIPTION π
bestie listen, it's actually so simple. this iterates over key-value pairs across the whole entire XBC tree π³ like, the whole tree, no cap.
each key node gets stored in knode, and each value string gets stored in value, respectively π«Ά so every trip around the loop hands you a fresh pair and you just do your thing. iconic behaviour, honestly π
π SEE ALSO π
kernel file ./include/linux/bootconfig.h β go read it, it's lowkey the whole lore drop πβ¨ and while you're at it, these besties are all in the same friend group:
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_value(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_node_compose_key(9)
and that's the whole page, mwah π it comes to you straight from ./include/linux, dated October 2026, in the Kernel API Manual β slay, go iterate some key-value pairs, you've got this ππ
π¦ 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