xbc_node_fo..._array_value(9)
β¨ NAME β¨
okay so welcome to the Kernel API Manual corner of the group chat π β this one is all about xbc_node_for_each_array_value, which iterates array entries of a geven key. yes bestie, βgevenβ is literally what the original says, and weβre keeping the vibe π«Ά
πΈ SYNOPSIS πΈ
xbc_node_for_each_array_value (node , key , anode , value );
π ARGUMENTS π
nodeβ an XBC node. your starting point, your main character β¨keyβ a key string searched undernode. the thing youβre looking for, iykyk πanodeβ iterated XBC node of the array entry. this is where the array-entry node gets stored πvalueβ iterated value of the array entry. this is where the value gets stored π
π DESCRIPTION π
So the whole gig is: iterate array entries of a given key under node π₯ Each array-entry node gets stored to anode, and the value gets stored to value.
If node doesnβt have the key node, it does nothing. literally nothing. no drama, no output, no block running π
Now the important lil plot twist: even if the found key node has only one value β not an array, just one β this still executes the block once. yes, one value still counts as a full entrance π
But if the found key node has no value at all (a key-only node), this does nothing. so itβs giving βempty handed, no notesβ π
bestie, do not use this for testing whether a key-value pair exists. thatβs not what this is for, and the single-value / key-only behavior will absolutely humble you π
π SEE ALSO π
the kernel file is ./include/linux/bootconfig.h, and the whole friend group is:
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_key_value(9)xbc_for_each_key_value(9)xbc_node_compose_key(9)
mwah π β this page lives in ./include/linux, stamped October 2026, and yes the title is xbc_node_fo..._array_value(9). bye bestie π«Ά
π¦ 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