register_serial_device

Function register_serial_device 

Source
pub fn register_serial_device(
    locked: &mut Locked<Unlocked>,
    system_task: &CurrentTask,
    index: u32,
    serial_device: Arc<SerialDevice>,
) -> Result<(), Errno>
Expand description

Register the given serial device.

The index should be the numerical value associated with the device. For example, if you want to register /dev/ttyS, then index should be n.