Skip to main content

ubi_att

Function ubi_att 

pub fn ubi_att<Fd: AsFd>(fd: Fd, req: &mut UbiAttachReq) -> Result<(), Errno>
Expand description

UBI_IOCATT: attaches an MTD device to UBI through the UBI control device, /dev/ubi_ctrl.

On success, req.ubi_num holds the number of the new UBI device. Needs CAP_SYS_RESOURCE. Added in Linux 2.6.25.

ยงErrors

Returns the error of the ioctl. An MTD device that is attached already returns EEXIST.