pub fn ring_offsets(raw_fd: c_int) -> Result<xdp_mmap_offsets>Expand description
Retrieves the memory map offsets for the AF_XDP rings from the kernel.
This function uses getsockopt with XDP_MMAP_OFFSETS to query the kernel for
the correct offsets of the producer/consumer indices and descriptor arrays for
all four rings.
ยงArguments
raw_fd- The raw file descriptor of the AF_XDP socket.