[−][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
om
: The head of the chain to extend.len
: The number of bytes to extend by.
Return: A pointer to the new data on success; NULL on failure.