Struct UbiMkvolReq
#[repr(C)]pub struct UbiMkvolReq {
pub vol_id: i32,
pub alignment: i32,
pub bytes: i64,
pub vol_type: UbiVolType,
pub flags: UbiVolFlags,
pub name_len: i16,
pub padding2: [i8; 4],
pub name: [c_char; 128],
}Expand description
struct ubi_mkvol_req: a volume to create.
Fields§
§vol_id: i32ID of the volume, or UBI_VOL_NUM_AUTO. The kernel returns the ID
of the volume here.
alignment: i32Alignment of the logical eraseblocks. The logical eraseblock size of the device is shortened to a multiple of it. 1 uses all of it.
bytes: i64Size of the volume in bytes.
vol_type: UbiVolTypeType of the volume.
flags: UbiVolFlagsFlags of the volume. Added in Linux 4.19.
name_len: i16Length of name without the zero byte.
padding2: [i8; 4]Reserved, must be 0.
name: [c_char; 128]Name of the volume, ending with a zero byte.
Trait Implementations§
§impl Clone for UbiMkvolReq
impl Clone for UbiMkvolReq
§fn clone(&self) -> UbiMkvolReq
fn clone(&self) -> UbiMkvolReq
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UbiMkvolReq
§impl Debug for UbiMkvolReq
impl Debug for UbiMkvolReq
§impl Default for UbiMkvolReq
impl Default for UbiMkvolReq
impl Eq for UbiMkvolReq
§impl Hash for UbiMkvolReq
impl Hash for UbiMkvolReq
§impl PartialEq for UbiMkvolReq
impl PartialEq for UbiMkvolReq
impl StructuralPartialEq for UbiMkvolReq
Auto Trait Implementations§
impl Freeze for UbiMkvolReq
impl RefUnwindSafe for UbiMkvolReq
impl Send for UbiMkvolReq
impl Sync for UbiMkvolReq
impl Unpin for UbiMkvolReq
impl UnsafeUnpin for UbiMkvolReq
impl UnwindSafe for UbiMkvolReq
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more