Skip to content

Libxdp function xsk_umem__create

Definition

Create an umem area.

Returns

0 on success, or a negative error in case of failure:

-EINVAL if arguments are invalid

-EFAULT if the memory address is invalid

-ENOMEM if no space memory left

Usage

int xsk_umem__create(struct xsk_umem **umem, void *umem_area, __u64 size,
             struct xsk_ring_prod *fill,
             struct xsk_ring_cons *comp,
             const struct xsk_umem_config *config);

Example

Docs could be improved

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