[−][src]Function mynewt::kernel::os::os_mbuf_get_pkthdr
pub unsafe extern "C" fn os_mbuf_get_pkthdr(
omp: *mut os_mbuf_pool,
pkthdr_len: u8
) -> *mut os_mbuf
Allocate a new packet header mbuf out of the os_mbuf_pool.
omp
: The mbuf pool to allocate out ofuser_pkthdr_len
: The packet header length to reserve for the caller.
Return: A freshly allocated mbuf on success, NULL on failure.