#[repr(u8)]pub enum UsageKind {
RustHeap = 0,
VirtMem = 1,
PageCache = 2,
PageTable = 3,
Dma = 4,
Global = 5,
}Expand description
Kinds of memory usage for tracking.
Variants§
RustHeap = 0
Heap allocations made by kernel Rust code.
VirtMem = 1
Virtual memory, usually used for user space.
PageCache = 2
Page cache for file systems.
PageTable = 3
Page tables.
Dma = 4
DMA memory.
Global = 5
Memory used by GlobalPage.
Trait Implementations§
impl Copy for UsageKind
impl Eq for UsageKind
impl StructuralPartialEq for UsageKind
Auto Trait Implementations§
impl Freeze for UsageKind
impl RefUnwindSafe for UsageKind
impl Send for UsageKind
impl Sync for UsageKind
impl Unpin for UsageKind
impl UnsafeUnpin for UsageKind
impl UnwindSafe for UsageKind
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