MCPcopy Create free account
hub / github.com/Ruddle/Fomos / calloc

Function calloc

bootloader/kernel/src/main.rs:82–85  ·  view source on GitHub ↗
(size: usize, align: usize)

Source from the content-addressed store, hash-verified

80}
81
82extern "C" fn calloc(size: usize, align: usize) -> *mut u8 {
83 // log::info!("alloc {} {}", size, align);
84 unsafe { ALLOCATOR.alloc(core::alloc::Layout::from_size_align(size, align).unwrap()) }
85}
86extern "C" fn cdalloc(ptr: *mut u8, size: usize, align: usize) {
87 // log::info!("dealloc {:?} {} {}", ptr, size, align);
88 unsafe {

Callers

nothing calls this directly

Calls 1

allocMethod · 0.45

Tested by

no test coverage detected