bootconfig_c...ne_requested(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, or 0 when 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 πŸ’œ:


πŸ’€ 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