Skip to main contentModule attach
- UbiAttachReq
struct ubi_attach_req: an MTD device to attach.
- MAX_UBI_MTD_NAME_LEN
- Longest MTD device name that UBI accepts.
- UBI_DEV_NUM_AUTO
- Lets the kernel pick the number of a new UBI device.
- UBI_IOCATT
- Opcode of
ubi_att. The header declares it as a write, but the kernel
also writes the device number back to userspace. - UBI_IOCDET
- Opcode of
ubi_det.
- ubi_att
UBI_IOCATT: attaches an MTD device to UBI through the UBI control
device, /dev/ubi_ctrl.- ubi_det
UBI_IOCDET: detaches UBI device ubi_num through the UBI control
device, /dev/ubi_ctrl.