_xbc_exit(9)
π _xbc_exit β the Kernel API Manual glow-up β¨
okay so bestie, welcome to the _xbc_exit(9) page from the Kernel API Manual β yes we're in kernel-land today, and no, it's not scary, i promise π«Ά
πΈ NAME πΈ
_xbc_exit β the little cleanup queen that wipes all your parsed bootconfig π§Ήπ
β¨ SYNOPSIS β¨
void _xbc_exit (bool early );
that's it. that's the whole signature. void in, void out, no return value, no drama (for once) π
π ARGUMENTS π
earlyβ set this totrueif you're calling it before the body system is initialized. literally just a "hey, are we super early or not" boolean, that's the whole vibe π¦
π DESCRIPTION π
okay so what does this actually do? _xbc_exit clears all the data structures of your parsed bootconfig out of memory π₯ like, full reset, memory's clean, nothing left behind. it's giving responsible adult energy, honestly.
and the reason you'd ever want that? if you need to reuse xbc_init with a new boot config, you can call this first. so like β out with the old, in with the new, slay β¨ it's the "close one tab before opening another" of kernel functions, iykyk π
ngl, it's a lifecycle thing β this is the exit half of the pair.xbc_initgets you in,_xbc_exitgets you out, periodt.
π SEE ALSO π
the whole friend group, gathered for you π the kernel file lives at ./lib/bootconfig.c and here's everybody else:
xbc_prepend_embedded_cmdline(9)xbc_embedded_cmdline_applied(9)bootconfig_cmdline_requested(9)xbc_get_info(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_init(9)
and that's the whole page, bestie π straight from ./lib, dated October 2026, and yeah β the _xbc_exit(9) girlies stay winning ππ¦ mwah, go clean up your memory β¨
π¦ 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