Skip to main content

parse_cmdline

Function parse_cmdline 

Source
pub unsafe fn parse_cmdline(ptr: u64, len: u64)
Expand description

Parse kernel cmdline from Limine boot arguments.

ptr is a pointer to a null-terminated C string provided by the bootloader. len is the length of the cmdline string (including the null terminator).

This function:

  • Stores the cmdline globally for /proc/cmdline access.
  • Detects console=ttyS0,baud parameters and logs the configuration.