acpi_parse_spcr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– acpi_parse_spcr(9) β€” from the Kernel API Manual πŸ’–

okay so bestie, this is the Kernel API Manual page for acpi_parse_spcr(9), and it's literally about parsing the ACPI SPCR table and adding the preferred console. iconic behavior, ngl πŸ¦‹


πŸ’– NAME πŸ’–

  • acpi_parse_spcr β€” parse the ACPI SPCR table and add the preferred console. periodt. ✨

✨ SYNOPSIS ✨

int acpi_parse_spcr (bool enable_earlycon , bool enable_console );

πŸŽ€ ARGUMENTS πŸŽ€

  • enable_earlycon β€” sets up earlycon for the console specified by the table. yes bestie, that exact console πŸ’…
  • enable_console β€” does the setup for the console specified by the table. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so for the architectures with support for ACPI, CONFIG_ACPI_SPCR_TABLE may be defined to parse the ACPI SPCR table. that's the whole vibe check. 🌈

as a result of the parsing, the preferred console is registered. and if enable_earlycon is true, earlycon is set up. if enable_console is true, the system console is also configured. slay. πŸ”₯

when CONFIG_ACPI_SPCR_TABLE is defined, this function should be called from arch initialization code as soon as the DT/ACPI decision is made. like, right then. don't wait. iykyk πŸ‘‘


🌈 SEE ALSO 🌈

  • Kernel file ./drivers/acpi/spcr.c β€” go read it, bestie, it's giving source code realness πŸ’œ

πŸ’Œ cute little sign-off: this page lives under ./drivers/acpi, dated October 2026, and it's literally acpi_parse_spcr(9). mwah, bye bestie! πŸ’…πŸŽ€
πŸ“¦ where this page comes from