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<L1CacheTlbInfo> for L1CacheTlbInfo

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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 StructuralEq for L1CacheTlbInfo

source§

impl StructuralPartialEq for L1CacheTlbInfo

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.