Function
cdalloc
(ptr: *mut u8, size: usize, align: usize)
Source from the content-addressed store, hash-verified
| 84 | unsafe { ALLOCATOR.alloc(core::alloc::Layout::from_size_align(size, align).unwrap()) } |
| 85 | } |
| 86 | extern "C" fn cdalloc(ptr: *mut u8, size: usize, align: usize) { |
| 87 | // log::info!("dealloc {:?} {} {}", ptr, size, align); |
| 88 | unsafe { |
| 89 | ALLOCATOR.dealloc( |
| 90 | ptr, |
| 91 | core::alloc::Layout::from_size_align(size, align).unwrap(), |
| 92 | ); |
| 93 | }; |
| 94 | } |
| 95 | |
| 96 | use acpi::AcpiTables; |
| 97 | #[derive(Clone)] |
Callers
nothing calls this directly
Tested by
no test coverage detected