#[non_exhaustive]#[repr(u32)]pub enum HugeTlb {
Huge64KB = 1_073_741_824,
Huge512KB = 1_275_068_416,
Huge1MB = 1_342_177_280,
Huge2MB = 1_409_286_144,
Huge8MB = 1_543_503_872,
Huge16MB = 1_610_612_736,
Huge32MB = 1_677_721_600,
Huge256MB = 1_879_048_192,
Huge512MB = 1_946_157_056,
Huge1GB = 2_013_265_920,
Huge2GB = 2_080_374_784,
Huge16GB = 2_281_701_376,
}
Expand description
Page size for the translation look-aside buffer.
Support for specific sizes depends on the CPU and kernel configuration. See also: https://www.kernel.org/doc/html/latest/admin-guide/mm/hugetlbpage.html
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Huge64KB = 1_073_741_824
Huge512KB = 1_275_068_416
Huge1MB = 1_342_177_280
Huge2MB = 1_409_286_144
Huge8MB = 1_543_503_872
Huge16MB = 1_610_612_736
Huge32MB = 1_677_721_600
Huge256MB = 1_879_048_192
Huge512MB = 1_946_157_056
Huge1GB = 2_013_265_920
Huge2GB = 2_080_374_784
Huge16GB = 2_281_701_376
Trait Implementations§
source§impl Ord for HugeTlb
impl Ord for HugeTlb
source§impl PartialEq for HugeTlb
impl PartialEq for HugeTlb
source§impl PartialOrd for HugeTlb
impl PartialOrd for HugeTlb
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for HugeTlb
impl Eq for HugeTlb
impl StructuralEq for HugeTlb
impl StructuralPartialEq for HugeTlb
Auto Trait Implementations§
impl RefUnwindSafe for HugeTlb
impl Send for HugeTlb
impl Sync for HugeTlb
impl Unpin for HugeTlb
impl UnwindSafe for HugeTlb
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more