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

pub unsafe extern "C" fn os_mbuf_len(om: *const os_mbuf) -> u16

@brief Calculates the length of an mbuf chain.

Calculates the length of an mbuf chain. If the mbuf contains a packet header, you should use OS_MBUF_PKTLEN() as a more efficient alternative to this function.

Return: The length, in bytes, of the provided mbuf chain.