Home
last modified time | relevance | path

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

/DragonOS/kernel/src/libs/
H A Dalign.rs23 const LAYOUT: core::alloc::Layout = { constant
53 let ptr = unsafe { KERNEL_ALLOCATOR.alloc_zeroed(Self::LAYOUT) }; in new_zeroed()
89 KERNEL_ALLOCATOR.dealloc(self.inner.as_ptr().cast(), Self::LAYOUT); in drop()
111 Self::new_zeroed().unwrap_or_else(|_| alloc::alloc::handle_alloc_error(Self::LAYOUT)); in clone()