[][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.

Return: A freshly allocated mbuf on success, NULL on failure.