xbc_node_fo..._array_value(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 under node. 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:


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