OS_MBUF_DATA

OS_MBUF_DATA(__om, __type)

Macro used to cast the data pointer of an mbuf to a given type.

Arguments

ArgumentsDescription
__omPointer to mbuf (struct os_mbuf *)
__typeType to cast

Example

    struct os_mbuf *om
    uint8_t *rxbuf;

    rxbuf = OS_MBUF_DATA(om, uint8_t *);