Skip to main content

device_info

Function device_info 

Source
pub fn device_info(fd: BorrowedFd<'_>, devid: u64) -> Result<Option<DeviceInfo>>
Expand description

Query information about the device with the given devid on the filesystem referred to by fd.

Returns None if no device with that ID exists (ENODEV).

ยงErrors

Returns Err if the ioctl fails (other than ENODEV).