Searched refs:AllocError (Results 1 – 1 of 1) sorted by relevance
8 alloc::{AllocError, GlobalAlloc, Layout},25 unsafe fn alloc_in_buddy(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in alloc_in_buddy() argument31 .ok_or(AllocError)?; in alloc_in_buddy()33 let virt_addr = unsafe { MMArch::phys_2_virt(phy_addr).ok_or(AllocError)? }; in alloc_in_buddy()35 return Err(AllocError); in alloc_in_buddy()