OS_MBUF_DATA
OS_MBUF_DATA(__om, __type)
Macro used to cast the data pointer of an mbuf to a given type.
Arguments
Arguments | Description |
---|
__om | Pointer to mbuf (struct os_mbuf *) |
__type | Type to cast |
Example
struct os_mbuf *om
uint8_t *rxbuf;
rxbuf = OS_MBUF_DATA(om, uint8_t *);