bootconfig_c...ne_requested(9)
π bootconfig_cmdline_requested
okay so bestie, welcome to the Kernel API Manual β¨ β this one's about bootconfig_cmdline_requested, and no cap, it's lowkey the vibe-checker for whether "bootconfig" got passed on the cmdline. let's get into it π
πΈ NAME πΈ
bootconfig_cmdline_requested β literally answers the question: was "bootconfig" passed on the cmdline? π΅οΈββοΈ
β¨ SYNOPSIS β¨
bool bootconfig_cmdline_requested (const char *boot_cmdline , int
*end_offset );
π«Ά ARGUMENTS π«Ά
boot_cmdlineβ the kernel command line you wanna inspect. bestie, it does not get modified, she's untouched, we're respectful here πend_offsetβ if it's non-NULL, we set it to the offset of the init arguments that follow a"--"separator, or0when there's none. giving "pointer to the tea" energy fr fr
π DESCRIPTION π
so here's the deal π β this parses a private copy of boot_cmdline (because parse_args is destructive, like, it will absolutely wreck the original, no survivors π) and then reports whether "bootconfig" is present before the "--" separator.
setup_arch uses this to gate prepending the build-time embedded cmdline β and setup_boot_config uses it for the runtime opt-in and to locate the init arguments via end_offset. the whole point of sharing one parser is so the early and late paths stay agreeing on what counts as opt-in β no mixed signals, no drama, main character consistency only π
one tiny caveat bestie: CONFIG_BOOT_CONFIG_FORCE is not folded in here π«£ β callers apply it where they need it. so don't come for this function, she's just doing her job.
π¦ SEE ALSO π¦
Kernel file ./lib/bootconfig.c β and the whole squad π:
xbc_prepend_embedded_cmdline(9)xbc_embedded_cmdline_applied(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_exit(9)xbc_init(9)
π heads up: parse_args is destructive β that's literally why this function parses a private copy. don't hand it the real cmdline and expect it back in one piece.
and that's the whole page, bestie π sign-off time: it lives under ./lib, dated October 2026, and it's the bootconfig_c...ne_requested(9) page you just read. slay, go forth and check your cmdlines π
β¨
π¦ 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