Libxdp function xsk_umem__extract_offset
Definition
This function extract the offset with the address in unaligned mode.
Note
You need to use this function with these functions xsk_umem__extract_addr xsk_umem__add_offset_to_addr
Note
In aligned mode, you need to use xsk_umem_get_data.
Returns
__u64 of the new address
Usage
__u64 xsk_umem__extract_offset(__u64 addr);
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome