Skip to content

Libxdp function xsk_umem__get_data

Definition

Allow to get a pointer to the packet data with the Rx descriptor, in aligned mode.

Note

In unaligned mode, you need to use these functions xsk_umem__extract_addr xsk_umem__extract_offset xsk_umem__add_offset_to_addr

Returns

No return

Usage

void *xsk_umem__get_data(void *umem_area, __u64 addr);

Example

Docs could be improved

This part of the docs is incomplete, contributions are very welcome