Skip to main content

pages_alloc

Function pages_alloc 

Source
pub unsafe fn pages_alloc(size: usize) -> *mut u8
Expand description

Allocate zeroed, page-aligned memory on both 4 KiB and 16 KiB Android devices.

ยงSafety

The returned pointer must be released exactly once with pages_free.