xbc_array_for_each_value(9)
πΈ xbc_array_for_each_value (9) β Kernel API Manual πΈ
okay bestie, listen up, because this one is a macro and she is iconic π
. This is the kernel API manual page for xbc_array_for_each_value, and no cap, it's a little loop-y situation you're gonna use with bootconfig stuff π.
β¨ SYNOPSIS β¨
xbc_array_for_each_value (anode , value );
like, that's it. that's the whole vibe check π
π«Ά ARGUMENTS π«Ά
anodeβ an XBC arraied value node π (yes, the manpage literally spells it "arraied", i'm not gonna touch it, she's valid). it's the array node you're starting from, bestie.valueβ a value β. the loop hands each one over to you.
π¦ DESCRIPTION π¦
So here's the tea π: this macro iterates array value nodes and values, and the whole thing starts from anode. literally, it walks the array, and for each entry you get the value. main character energy.
And the way you're supposed to use it? it's expected to be used with xbc_find_value and xbc_node_find_value, so that the user can process each array entry node πβ¨. like, those two find what you're looking for, and this macro handles the per-entry sit-down. periodt.
lowkey important: it says "expected to be used with" those two functions β that's the intended pairing, so keep that in mind before you go rogue π.
π SEE ALSO π
- Kernel file
./include/linux/bootconfig.hβ go read her, she's right there π 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_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)
that's a whole friend group right there and they all ate π₯
okay that's the page!! mwah π she lives in ./include/linux, and this blessΓ¨d edition is dated October 2026 β future vibes only, 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