raw_cpuid

Struct L1CacheTlbInfo

Source
pub struct L1CacheTlbInfo { /* private fields */ }
Expand description

L1 Cache and TLB Information (LEAF=0x8000_0005).

§Availability

✅ AMD ❌ Intel (reserved=0)

Implementations§

Source§

impl L1CacheTlbInfo

Source

pub fn dtlb_2m_4m_associativity(&self) -> Associativity

Data TLB associativity for 2-MB and 4-MB pages.

Source

pub fn dtlb_2m_4m_size(&self) -> u8

Data TLB number of entries for 2-MB and 4-MB pages.

The value returned is for the number of entries available for the 2-MB page size; 4-MB pages require two 2-MB entries, so the number of entries available for the 4-MB page size is one-half the returned value.

Source

pub fn itlb_2m_4m_associativity(&self) -> Associativity

Instruction TLB associativity for 2-MB and 4-MB pages.

Source

pub fn itlb_2m_4m_size(&self) -> u8

Instruction TLB number of entries for 2-MB and 4-MB pages.

The value returned is for the number of entries available for the 2-MB page size; 4-MB pages require two 2-MB entries, so the number of entries available for the 4-MB page size is one-half the returned value.

Source

pub fn dtlb_4k_associativity(&self) -> Associativity

Data TLB associativity for 4K pages.

Source

pub fn dtlb_4k_size(&self) -> u8

Data TLB number of entries for 4K pages.

Source

pub fn itlb_4k_associativity(&self) -> Associativity

Instruction TLB associativity for 4K pages.

Source

pub fn itlb_4k_size(&self) -> u8

Instruction TLB number of entries for 4K pages.

Source

pub fn dcache_size(&self) -> u8

L1 data cache size in KB

Source

pub fn dcache_associativity(&self) -> Associativity

L1 data cache associativity.

Source

pub fn dcache_lines_per_tag(&self) -> u8

L1 data cache lines per tag.

Source

pub fn dcache_line_size(&self) -> u8

L1 data cache line size in bytes.

Source

pub fn icache_size(&self) -> u8

L1 instruction cache size in KB

Source

pub fn icache_associativity(&self) -> Associativity

L1 instruction cache associativity.

Source

pub fn icache_lines_per_tag(&self) -> u8

L1 instruction cache lines per tag.

Source

pub fn icache_line_size(&self) -> u8

L1 instruction cache line size in bytes.

Trait Implementations§

Source§

impl Debug for L1CacheTlbInfo

Source§

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

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

impl PartialEq for L1CacheTlbInfo

Source§

fn eq(&self, other: &L1CacheTlbInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for L1CacheTlbInfo

Source§

impl StructuralPartialEq for L1CacheTlbInfo

Auto Trait Implementations§

§

impl Freeze for L1CacheTlbInfo

§

impl RefUnwindSafe for L1CacheTlbInfo

§

impl Send for L1CacheTlbInfo

§

impl Sync for L1CacheTlbInfo

§

impl Unpin for L1CacheTlbInfo

§

impl UnwindSafe for L1CacheTlbInfo

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.