Function riot_sys::os_mbuf_get

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

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

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

@return An initialized mbuf on success, and NULL on failure.