Function ubi_det
pub fn ubi_det<Fd: AsFd>(fd: Fd, ubi_num: i32) -> Result<(), Errno>Expand description
UBI_IOCDET: detaches UBI device ubi_num through the UBI control
device, /dev/ubi_ctrl.
Needs CAP_SYS_RESOURCE. Added in Linux 2.6.25.
Some vendor kernels, such as the Linux 3.18 of the Quectel AG35, detach the device even while volumes are open or mounted.
ยงErrors
Returns the error of the ioctl. A device in use, for example by a mounted
volume, returns EBUSY.