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

pub unsafe extern "C" fn os_mbuf_widen(
    om: *mut os_mbuf,
    off: u16,
    len: u16
) -> c_int

Increases the length of an mbuf chain by inserting a gap at the specified offset. The contents of the gap are indeterminate. If the mbuf chain contains a packet header, its total length is increased accordingly.

This function never frees the provided mbuf chain.

  • om: The mbuf chain to widen.
  • off: The offset at which to insert the gap.
  • len: The size of the gap to insert.

Return: 0 on success; SYS_[...] error code on failure.