Skip to main content

nvmf_disc_log_entry

Struct nvmf_disc_log_entry 

Source
#[repr(C)]
pub struct nvmf_disc_log_entry {
Show 14 fields pub trtype: __u8, pub adrfam: __u8, pub subtype: __u8, pub treq: __u8, pub portid: __le16, pub cntlid: __le16, pub asqsz: __le16, pub eflags: __le16, pub rsvd12: [__u8; 20], pub trsvcid: [c_char; 32], pub rsvd64: [__u8; 192], pub subnqn: [c_char; 256], pub traddr: [c_char; 256], pub tsas: nvmf_tsas,
}
Expand description

struct nvmf_disc_log_entry - Discovery Log Page entry @trtype: Transport Type (TRTYPE): Specifies the NVMe Transport type. See &enum nvmf_trtype. @adrfam: Address Family (ADRFAM): Specifies the address family. See &enum nvmf_addr_family. @subtype: Subsystem Type (SUBTYPE): Specifies the type of the NVM subsystem that is indicated in this entry. See &enum nvme_subsys_type. @treq: Transport Requirements (TREQ): Indicates requirements for the NVMe Transport. See &enum nvmf_treq. @portid: Port ID (PORTID): Specifies a particular NVM subsystem port. Different NVMe Transports or address families may utilize the same Port ID value (e.g. a Port ID may support both iWARP and RoCE). @cntlid: Controller ID (CNTLID): Specifies the controller ID. If the NVM subsystem uses a dynamic controller model, then this field shall be set to FFFFh. If the NVM subsystem uses a static controller model, then this field may be set to a specific controller ID (values 0h to FFEFh are valid). If the NVM subsystem uses a static controller model and the value indicated is FFFEh, then the host should remember the Controller ID returned as part of the Fabrics Connect command in order to re-establish an association in the future with the same controller. @asqsz: Admin Max SQ Size (ASQSZ): Specifies the maximum size of an Admin Submission Queue. This applies to all controllers in the NVM subsystem. The value shall be a minimum of 32 entries. @eflags: Entry Flags (EFLAGS): Indicates additional information related to the current entry. See &enum nvmf_disc_eflags. @rsvd12: Reserved @trsvcid: Transport Service Identifier (TRSVCID): Specifies the NVMe Transport service identifier as an ASCII string. The NVMe Transport service identifier is specified by the associated NVMe Transport binding specification. @rsvd64: Reserved @subnqn: NVM Subsystem Qualified Name (SUBNQN): NVMe Qualified Name (NQN) that uniquely identifies the NVM subsystem. For a subsystem, if that Discovery subsystem has a unique NQN (i.e., the NVM Subsystem NVMe Qualified Name (SUBNQN) field in that Discovery subsystem’s Identify Controller data structure contains a unique NQN value), then the value returned shall be that unique NQN. If the Discovery subsystem does not have a unique NQN, then the value returned shall be the well-known Discovery Service NQN (nqn.2014-08.org.nvmexpress.discovery). @traddr: Transport Address (TRADDR): Specifies the address of the NVM subsystem that may be used for a Connect command as an ASCII string. The Address Family field describes the reference for parsing this field. @tsas: Transport specific attribute settings

Fields§

§trtype: __u8§adrfam: __u8§subtype: __u8§treq: __u8§portid: __le16§cntlid: __le16§asqsz: __le16§eflags: __le16§rsvd12: [__u8; 20]§trsvcid: [c_char; 32]§rsvd64: [__u8; 192]§subnqn: [c_char; 256]§traddr: [c_char; 256]§tsas: nvmf_tsas

Trait Implementations§

Source§

impl Clone for nvmf_disc_log_entry

Source§

fn clone(&self) -> nvmf_disc_log_entry

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 Default for nvmf_disc_log_entry

Source§

fn default() -> Self

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

impl Copy for nvmf_disc_log_entry

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.