[][src]Function mynewt::kernel::os::os_mbuf_get

pub unsafe extern "C" fn os_mbuf_get(
    omp: *mut os_mbuf_pool,
    arg1: u16
) -> *mut os_mbuf

Get an mbuf from the mbuf pool. The mbuf is allocated, and initialized prior to being returned.

  • omp: The mbuf pool to return the packet from
  • leadingspace: The amount of leadingspace to put before the data section by default.

Return: An initialized mbuf on success, and NULL on failure.