xbc_node_compose_key(9)
π NAME π
ok so xbc_node_compose_key β this is the XBC node key-string composer bestie, it builds the full key string for one of your XBC nodes. that's the whole vibe β¨
this little function lives in the Kernel API Manual section 9, so yeah, kernel-internals territory, bring snacks π
β¨ SYNOPSIS β¨
int xbc_node_compose_key (struct xbc_node *node , char *buf , size_t
size );
π ARGUMENTS π
nodeβ An XBC node. your main character, the one whose key we're composing πbufβ A buffer to store the key. this is where the magic lands π«Άsizeβ The size of thebuf. don't skimp, okay? that's the capacity you're giving it πΈ
π₯ DESCRIPTION π₯
okay so the whole job: compose the full-length key of the node into buf. like, the whole key, not a snippet, not a teaser β the full-length one π
it returns the total length of the key stored in buf.
and then the two sad-girl failure modes, ngl:
- returns
-EINVALifnodeisNULLπ (can't compose a key for a node that isn't there, bestie) - returns
-ERANGEif the key depth is deeper than max depth π like it went too deep, iconic but illegal
fr fr keep an eye on those two return codes, they're the vibe check of this function β¨
π SEE ALSO π
kernel file ./include/linux/bootconfig.h plus all these siblings, they all slay together π«Ά
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_for_each_key_value(9)
ok that's the whole page, go forth and compose keys π
π₯Ί cute little sign-off: this one came from ./include/linux, stamped October 2026, and yes it's the xbc_node_compose_key(9) page β you're welcome, mwah π
π¦ 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