xbc_get_info(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ‘‘

like, the whole friend group fr fr 🫢 go read them all, iykyk 🌟


πŸ’€ reminder bestie: both args are optional-by-NULL, but if you pass NULL you 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