pub fn get_serial_cmdline(
    cmdline: &mut Cmdline,
    serial_parameters: &BTreeMap<(SerialHardware, u8), SerialParameters>,
    serial_io_type: &str,
    serial_devices: &[SerialDeviceInfo]
) -> GetSerialCmdlineResult<()>
Expand description

Add serial options to the provided cmdline based on serial_parameters. serial_io_type should be “io” if the platform uses x86-style I/O ports for serial devices or “mmio” if the serial ports are memory mapped.