MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / dealloc

Method dealloc

src/allocator/lnls.rs:165–170  ·  view source on GitHub ↗
(&self, ptr: *mut u8, layout: Layout)

Source from the content-addressed store, hash-verified

163 }
164
165 unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout)
166 {
167 // Make adjustment(s) to layout:
168 let (size, _) = LnLsAlloc::sizealign(layout);
169 self.lock().add_freergn(ptr as usize, size)
170 }
171}

Callers

nothing calls this directly

Calls 2

add_freergnMethod · 0.80
lockMethod · 0.80

Tested by

no test coverage detected