pub struct PoolAllocator { /* private fields */ }Expand description
kernel pool allocator
Implementations§
Source§impl PoolAllocator
impl PoolAllocator
Sourcepub const fn new(pool_type: PoolType, tag: PoolTag) -> Self
pub const fn new(pool_type: PoolType, tag: PoolTag) -> Self
create new pool allocator with specified type and tag
Sourcepub fn allocate_zeroed(&self, size: usize) -> KmResult<NonNull<u8>>
pub fn allocate_zeroed(&self, size: usize) -> KmResult<NonNull<u8>>
allocate zeroed memory from pool
Auto Trait Implementations§
impl Freeze for PoolAllocator
impl RefUnwindSafe for PoolAllocator
impl Send for PoolAllocator
impl Sync for PoolAllocator
impl Unpin for PoolAllocator
impl UnwindSafe for PoolAllocator
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