#[repr(C)]pub struct nvme_format_nvm_args {
pub result: *mut __u32,
pub args_size: c_int,
pub fd: c_int,
pub timeout: __u32,
pub nsid: __u32,
pub mset: nvme_cmd_format_mset,
pub pi: nvme_cmd_format_pi,
pub pil: nvme_cmd_format_pil,
pub ses: nvme_cmd_format_ses,
pub lbaf: __u8,
pub rsvd1: [__u8; 7],
pub lbafu: __u8,
}Expand description
struct nvme_format_nvm_args - Arguments for the Format Nvme Namespace command @result: The command completion result from CQE dword0 @args_size: Size of &struct nvme_format_nvm_args @fd: File descriptor of nvme device @timeout: Set to override default timeout to this value in milliseconds; useful for long running formats. 0 will use system default. @nsid: Namespace ID to format @mset: Metadata settings (extended or separated), true if extended @pi: Protection information type @pil: Protection information location (beginning or end), true if end @ses: Secure erase settings @lbaf: Logical block address format least significant 4 bits @rsvd1: Reserved @lbafu: Logical block address format most significant 2 bits
Fields§
§result: *mut __u32§args_size: c_int§fd: c_int§timeout: __u32§nsid: __u32§mset: nvme_cmd_format_mset§pi: nvme_cmd_format_pi§pil: nvme_cmd_format_pil§ses: nvme_cmd_format_ses§lbaf: __u8§rsvd1: [__u8; 7]§lbafu: __u8Trait Implementations§
Source§impl Clone for nvme_format_nvm_args
impl Clone for nvme_format_nvm_args
Source§fn clone(&self) -> nvme_format_nvm_args
fn clone(&self) -> nvme_format_nvm_args
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 moreSource§impl Debug for nvme_format_nvm_args
impl Debug for nvme_format_nvm_args
Source§impl Default for nvme_format_nvm_args
impl Default for nvme_format_nvm_args
impl Copy for nvme_format_nvm_args
Auto Trait Implementations§
impl Freeze for nvme_format_nvm_args
impl RefUnwindSafe for nvme_format_nvm_args
impl !Send for nvme_format_nvm_args
impl !Sync for nvme_format_nvm_args
impl Unpin for nvme_format_nvm_args
impl UnsafeUnpin for nvme_format_nvm_args
impl UnwindSafe for nvme_format_nvm_args
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