Skip to main content

nvme_id_psd

Struct nvme_id_psd 

Source
#[repr(C)]
pub struct nvme_id_psd {
Show 20 fields pub mp: __le16, pub rsvd2: __u8, pub flags: __u8, pub enlat: __le32, pub exlat: __le32, pub rrt: __u8, pub rrl: __u8, pub rwt: __u8, pub rwl: __u8, pub idlp: __le16, pub ips: __u8, pub rsvd19: __u8, pub actp: __le16, pub apws: __u8, pub epfrt: __u8, pub fqvt: __u8, pub epfvt: __u8, pub epfr_fqv_ts: __u8, pub epfvts: __u8, pub rsvd28: [__u8; 4],
}
Expand description

struct nvme_id_psd - Power Management data structure @mp: Maximum Power indicates the sustained maximum power consumed by the NVM subsystem in this power state. The power in Watts is equal to the value in this field multiplied by the scale specified in the Max Power Scale bit (see &enum nvme_psd_flags). A value of 0 indicates Maximum Power is not reported. @rsvd2: Reserved @flags: Additional decoding flags, see &enum nvme_psd_flags. @enlat: Entry Latency indicates the maximum latency in microseconds associated with entering this power state. A value of 0 indicates Entry Latency is not reported. @exlat: Exit Latency indicates the maximum latency in microseconds associated with exiting this power state. A value of 0 indicates Exit Latency is not reported. @rrt: Relative Read Throughput indicates the read throughput rank associated with this power state relative to others. The value in this is less than the number of supported power states. @rrl: Relative Read Latency indicates the read latency rank associated with this power state relative to others. The value in this field is less than the number of supported power states. @rwt: Relative Write Throughput indicates write throughput rank associated with this power state relative to others. The value in this field is less than the number of supported power states @rwl: Relative Write Latency indicates the write latency rank associated with this power state relative to others. The value in this field is less than the number of supported power states @idlp: Idle Power indicates the typical power consumed by the NVM subsystem over 30 seconds in this power state when idle. @ips: Idle Power Scale indicates the scale for &struct nvme_id_psd.idlp, see &enum nvme_psd_ps for decoding this field. @rsvd19: Reserved @actp: Active Power indicates the largest average power consumed by the NVM subsystem over a 10 second period in this power state with the workload indicated in the Active Power Workload field. @apws: Bits 7-6: Active Power Scale(APS) indicates the scale for the &struct nvme_id_psd.actp, see &enum nvme_psd_ps for decoding this value. Bits 2-0: Active Power Workload(APW) indicates the workload used to calculate maximum power for this power state. See &enum nvme_psd_workload for decoding this field. @epfrt: Emergency power fail recovery time @fqvt: Forced quiescence vault time @epfvt: Emergency power fail vault time @epfr_fqv_ts: Bits 7-4: Forced quiescence vault time scale Bits 3-0: Emergency power fail recovery time scale @epfvts: Bits 3-0: Emergency power fail vault time scale @rsvd28: Reserved

Fields§

§mp: __le16§rsvd2: __u8§flags: __u8§enlat: __le32§exlat: __le32§rrt: __u8§rrl: __u8§rwt: __u8§rwl: __u8§idlp: __le16§ips: __u8§rsvd19: __u8§actp: __le16§apws: __u8§epfrt: __u8§fqvt: __u8§epfvt: __u8§epfr_fqv_ts: __u8§epfvts: __u8§rsvd28: [__u8; 4]

Trait Implementations§

Source§

impl Clone for nvme_id_psd

Source§

fn clone(&self) -> nvme_id_psd

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 nvme_id_psd

Source§

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

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

impl Default for nvme_id_psd

Source§

fn default() -> nvme_id_psd

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

impl Copy for nvme_id_psd

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.