xbc_for_each_key_value(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 looping
  • value β€” 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:


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