Method lrs::file::Device::from_major_minor

Returns a device based on its major and minor numbers and type.

Syntax

impl Device {
    fn from_major_minor(major: u32, minor: u32, ty: DeviceType) -> Device
}

Arguments

NameDescription
major

The major part of the device id.

minor

The minor part of the device id.

ty

The type of the device.