Searched refs:Layout (Results 1 – 3 of 3) sorted by relevance
/DragonOS-0.1.8/kernel/src/mm/allocator/ |
D | kernel_allocator.rs | 8 alloc::{AllocError, GlobalAlloc, Layout}, 17 unsafe fn local_alloc(&self, layout: Layout) -> *mut u8; in local_alloc() 18 unsafe fn local_alloc_zeroed(&self, layout: Layout) -> *mut u8; in local_alloc_zeroed() 19 unsafe fn local_dealloc(&self, ptr: *mut u8, layout: Layout); in local_dealloc() argument 25 unsafe fn alloc_in_buddy(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in alloc_in_buddy() 47 unsafe fn free_in_buddy(&self, ptr: *mut u8, layout: Layout) { in free_in_buddy() argument 58 unsafe fn local_alloc(&self, layout: Layout) -> *mut u8 { in local_alloc() 65 unsafe fn local_alloc_zeroed(&self, layout: Layout) -> *mut u8 { in local_alloc_zeroed() 76 unsafe fn local_dealloc(&self, ptr: *mut u8, layout: Layout) { in local_dealloc() argument 83 unsafe fn alloc(&self, layout: Layout) -> *mut u8 { in alloc() [all …]
|
D | slab.rs | 4 use core::alloc::Layout; 45 pub fn allocate(&mut self, _layout: Layout) -> Option<*mut u8> { in allocate()
|
/DragonOS-0.1.8/kernel/src/libs/ |
D | align.rs | 21 const LAYOUT: core::alloc::Layout = { 29 let layout = core::alloc::Layout::from_size_align(
|