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

pub unsafe extern "C" fn os_mbuf_extend(
    om: *mut os_mbuf,
    len: u16
) -> *mut c_void

Increases the length of an mbuf chain by the specified amount. If there is not sufficient room in the last buffer, a new buffer is allocated and appended to the chain. It is an error to request more data than can fit in a single buffer.

@param omp

Return: A pointer to the new data on success; NULL on failure.