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

pub unsafe extern "C" fn os_mbuf_adj(mp: *mut os_mbuf, req_len: c_int)

Adjust the length of a mbuf, trimming either from the head or the tail of the mbuf.

  • mp: The mbuf chain to adjust
  • req_len: The length to trim from the mbuf. If positive, trims from the head of the mbuf, if negative, trims from the tail of the mbuf.