riot_sys

Function os_mbuf_len

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

@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.

@param om The mbuf to measure.

@return The length, in bytes, of the provided mbuf chain.