Skip to main content

Module attach

Module attach 

Structs§

UbiAttachReq
struct ubi_attach_req: an MTD device to attach.

Constants§

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.

Functions§

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.