Skip to main content

nbft_info_subsystem_ns

Struct nbft_info_subsystem_ns 

Source
#[repr(C)]
pub struct nbft_info_subsystem_ns {
Show 20 fields pub index: c_int, pub discovery: *mut nbft_info_discovery, pub security: *mut nbft_info_security, pub num_hfis: c_int, pub hfis: *mut *mut nbft_info_hfi, pub transport: [c_char; 8], pub traddr: [c_char; 40], pub trsvcid: *mut c_char, pub subsys_port_id: __u16, pub nsid: __u32, pub nid_type: nbft_info_nid_type, pub nid: *mut __u8, pub subsys_nqn: *mut c_char, pub pdu_header_digest_required: bool, pub data_digest_required: bool, pub controller_id: c_int, pub asqsz: c_int, pub dhcp_root_path_string: *mut c_char, pub discovered: bool, pub unavailable: bool,
}
Expand description

struct nbft_info_subsystem_ns - Subsystem Namespace (SSNS) info @index: SSNS Descriptor Index in the descriptor list. @discovery: Primary Discovery Controller associated with this SSNS Descriptor. @security: Security Profile Descriptor associated with this namespace. @num_hfis: Number of HFIs. @hfis: List of HFIs associated with this namespace. Includes the primary HFI at the first position and all secondary HFIs. This array is null-terminated. @transport: Transport Type string (e.g. ‘tcp’). @traddr: Subsystem Transport Address. @trsvcid: Subsystem Transport Service Identifier. @subsys_port_id: The Subsystem Port ID. @nsid: The Namespace ID of this descriptor or when @nid should be used instead. @nid_type: Namespace Identifier Type, see &enum nbft_info_nid_type. @nid: The Namespace Identifier value. @subsys_nqn: Subsystem and Namespace NQN. @pdu_header_digest_required: PDU Header Digest (HDGST) Flag: the use of NVM Header Digest Enabled is required. @data_digest_required: Data Digest (DDGST) Flag: the use of NVM Data Digest Enabled is required. @controller_id: Controller ID (SSNS Extended Information Descriptor): The controller ID associated with the Admin Queue or 0 if not supported. @asqsz: Admin Submission Queue Size (SSNS Extended Information Descriptor) or 0 if not supported. @dhcp_root_path_string: DHCP Root Path Override string (SSNS Extended Information Descriptor). @discovered: Indicates that this namespace was acquired through discovery. @unavailable: Namespace is unavailable as indicated by the pre-OS driver.

Fields§

§index: c_int§discovery: *mut nbft_info_discovery§security: *mut nbft_info_security§num_hfis: c_int§hfis: *mut *mut nbft_info_hfi§transport: [c_char; 8]§traddr: [c_char; 40]§trsvcid: *mut c_char§subsys_port_id: __u16§nsid: __u32§nid_type: nbft_info_nid_type§nid: *mut __u8§subsys_nqn: *mut c_char§pdu_header_digest_required: bool§data_digest_required: bool§controller_id: c_int§asqsz: c_int§dhcp_root_path_string: *mut c_char§discovered: bool§unavailable: bool

Trait Implementations§

Source§

impl Clone for nbft_info_subsystem_ns

Source§

fn clone(&self) -> nbft_info_subsystem_ns

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for nbft_info_subsystem_ns

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for nbft_info_subsystem_ns

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for nbft_info_subsystem_ns

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.