Function riot_sys::os_mbuf_extend

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

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 @param om The head of the chain to extend. @param len The number of bytes to extend by.

@return A pointer to the new data on success; NULL on failure.