Home
last modified time | relevance | path

Searched refs:layout (Results 1 – 5 of 5) sorted by relevance

/DragonOS-0.1.9/kernel/src/mm/allocator/
Dkernel_allocator.rs20 unsafe fn local_alloc(&self, layout: Layout) -> *mut u8; in local_alloc()
21 unsafe fn local_alloc_zeroed(&self, layout: Layout) -> *mut u8; in local_alloc_zeroed()
22 unsafe fn local_dealloc(&self, ptr: *mut u8, layout: Layout); in local_dealloc()
28 unsafe fn alloc_in_buddy(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in alloc_in_buddy()
30 let count = (page_align_up(layout.size()) / MMArch::PAGE_SIZE).next_power_of_two(); in alloc_in_buddy()
50 unsafe fn free_in_buddy(&self, ptr: *mut u8, layout: Layout) { in free_in_buddy()
52 let count = (page_align_up(layout.size()) / MMArch::PAGE_SIZE).next_power_of_two(); in free_in_buddy()
61 unsafe fn local_alloc(&self, layout: Layout) -> *mut u8 { in local_alloc()
63 .alloc_in_buddy(layout) in local_alloc()
68 unsafe fn local_alloc_zeroed(&self, layout: Layout) -> *mut u8 { in local_alloc_zeroed()
[all …]
/DragonOS-0.1.9/kernel/src/libs/
Dalign.rs31 let layout = core::alloc::Layout::from_size_align( localVariable
36 if let Ok(layout) = layout {
37 layout
/DragonOS-0.1.9/kernel/crates/klog_types/src/
Dlib.rs129 pub layout: core::alloc::Layout, field
135 pub fn new(layout: core::alloc::Layout, vaddr: Option<usize>, paddr: Option<usize>) -> Self { in new()
137 layout, in new()
147 .field("layout", &self.layout) in fmt()
/DragonOS-0.1.9/docs/community/ChangeLog/V0.1.x/
DV0.1.6.md262 * layout.html末尾加空行
/DragonOS-0.1.9/kernel/src/libs/intertrait/
DREADME.md146 In the course, it doesn't rely on any unstable Rust implementation details such as the layout of tr…