setup_earlycon(9)
πΈ NAME πΈ
setup_earlycon β match and register earlycon console, bestie. This is the setup_earlycon(9) page from the Kernel API Manual, and we are gonna make it make sense π
β¨ SYNOPSIS β¨
int setup_earlycon (char *buf );
π ARGUMENTS π
bufβ the earlycon param string. That's the little string doing all the matchmaking, no cap.
π DESCRIPTION π
So this function registers the earlycon console that matches the earlycon specified in the param string buf. The acceptable param strings are totally giving these forms:
<name>,io|mmio|mmio32|mmio32be,<addr>,<options>
<name>,0x<addr>,<options>
<name>,<options>
<name>
Only for the third form β yep, the <name>,<options> one β does the earlycon setup method receive the <options> string in the 'options' parameter. All the other forms set that parameter to NULL. That's the rule, bestie, don't forget it π«Ά
It returns 0 if an attempt to register the earlycon was made; otherwise it gives you a negative error code. So 0 is literally "an attempt was made" β that's the whole return vibe π
π¦ SEE ALSO π¦
- Kernel file
./drivers/tty/serial/earlycon.cβ go read it, it's the main character π₯
mwah π this page is sourced from ./drivers/tty/serial, dated October 2026, and it's the setup_earlycon(9) entry in the Kernel API Manual. bye bestie, slay your earlycon setup πβ¨
π¦ 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