Struct UbiAttachReq
#[repr(C)]pub struct UbiAttachReq {
pub ubi_num: i32,
pub mtd_num: i32,
pub vid_hdr_offset: i32,
pub max_beb_per1024: i16,
pub disable_fm: i8,
pub need_resv_pool: i8,
pub wl_threshold: i32,
pub padding: [i8; 4],
}Expand description
struct ubi_attach_req: an MTD device to attach.
Fields§
§ubi_num: i32Number of the new UBI device, or UBI_DEV_NUM_AUTO. The kernel
returns the number of the device here.
mtd_num: i32Number of the MTD device.
vid_hdr_offset: i32Offset of the VID header in a physical eraseblock, or 0 for the default.
max_beb_per1024: i16Most bad physical eraseblocks expected per 1024, from 0 to 768. 0
selects CONFIG_MTD_UBI_BEB_LIMIT. Added in Linux 3.7.
disable_fm: i8Not 0 to stop using fastmap and remove an existing one. Added in Linux 6.1. Older kernels ignore it.
need_resv_pool: i8Not 0 to reserve free physical eraseblocks for the fastmap pools. Added in Linux 6.7. Older kernels ignore it.
wl_threshold: i32Largest difference between the highest and the lowest erase counter
before wear leveling moves data, from 2 to 65536. 0 selects
CONFIG_MTD_UBI_WL_THRESHOLD. Added in Linux 7.3. Older kernels
ignore it.
padding: [i8; 4]Reserved, must be 0.
Trait Implementations§
§impl Clone for UbiAttachReq
impl Clone for UbiAttachReq
§fn clone(&self) -> UbiAttachReq
fn clone(&self) -> UbiAttachReq
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more