[−][src]Function mynewt::kernel::os::os_malloc
pub unsafe extern "C" fn os_malloc(size: usize) -> *mut c_void
Operating system level malloc(). This ensures that a safe malloc occurs within the context of the OS. Depending on platform, the OS may rely on libc's malloc() implementation, which is not guaranteed to be thread-safe. This malloc() will always be thread-safe.
size
: The number of bytes to allocate
Return: A pointer to the memory region allocated.