xbc_get_info(9)
β¨ xbc_get_info π (section 9 of the Kernel API Manual, bestie)
okay so you found your way into the kernel API manual, welcome, this page is literally about peeking at your loaded boot config's stats π
πΈ NAME πΈ
xbc_get_info β get the information of loaded boot config β¨
π¦ SYNOPSIS π¦
int xbc_get_info (int *node_size , size_t *data_size );
π ARGUMENTS π
node_sizeβ a pointer where the number of nodes gets stored, bestie. that's it, that's the whole job π«Άdata_sizeβ a pointer where the size of bootconfig data gets stored. iconic, no notes π
π DESCRIPTION π
okay so here's the tea β β this bad boy grabs the number of used nodes and drops it into node_size, but only if node_size is not NULL. same deal for data_size: it gets the size of bootconfig data, but only if data_size is not NULL. very "if you don't ask, you don't get" energy, honestly π
and the return? it returns 0 if the boot config is initialized (slay, we're so back π₯), or it returns -ENODEV (not the vibe, girl π).
π SEE ALSO π
- Kernel file
./lib/bootconfig.cβ the source, the mothership, the main character π xbc_prepend_embedded_cmdline(9)xbc_embedded_cmdline_applied(9)bootconfig_cmdline_requested(9)xbc_root_node(9)xbc_node_index(9)xbc_node_get_parent(9)xbc_node_get_child(9)xbc_node_get_next(9)xbc_node_get_data(9)xbc_node_find_subkey(9)xbc_node_find_value(9)xbc_node_compose_key_after(9)xbc_node_find_next_leaf(9)xbc_node_find_next_key_value(9)xbc_snprint_cmdline(9)_xbc_exit(9)xbc_init(9)
like, the whole friend group fr fr π«Ά go read them all, iykyk π
π reminder bestie: both args are optional-by-NULL, but if you passNULLyou get nothing back for that one. no cap.
β this page came from the ./lib corner of the source tree, dated October 2026 β and that's the whole manual page, periodt π
πβ¨
π¦ 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