pub struct VmHeap {
vm: &'static Vm,
zones: [Vec<Arc<UmaZone>>; 15],
stats: CpuLocal<RefCell<Stats>>,
}Expand description
Kernel heap that allocate a memory from a virtual memory management system. This struct is a
merge of malloc_type and malloc_type_internal structure.
Fields§
§vm: &'static Vm§zones: [Vec<Arc<UmaZone>>; 15]§stats: CpuLocal<RefCell<Stats>>Implementations§
Source§impl VmHeap
impl VmHeap
const KMEM_ZSHIFT: usize = 4
const KMEM_ZBASE: usize = 16
const KMEM_ZMASK: usize
const KMEM_ZSIZE: usize
Auto Trait Implementations§
impl !RefUnwindSafe for VmHeap
impl !UnwindSafe for VmHeap
impl Freeze for VmHeap
impl Send for VmHeap
impl Sync for VmHeap
impl Unpin for VmHeap
impl UnsafeUnpin for VmHeap
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