[−][src]Function mynewt::kernel::os::os_msys_get
pub unsafe extern "C" fn os_msys_get(
dsize: u16,
leadingspace: u16
) -> *mut os_mbuf
Allocate a mbuf from msys. Based upon the data size requested, os_msys_get() will choose the mbuf pool that has the best fit.
dsize
: The estimated size of the data being stored in the mbufleadingspace
: The amount of leadingspace to allocate in the mbuf
Return: A freshly allocated mbuf on success, NULL on failure.