Skip to content

Libxdp function xsk_socket__update_xskmap

Definition

This function updates an XSK map with a new AF_XDP socket.

Returns

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

-EINVAL if arguments are invalid

-ENOENT if entry not found

Usage

int xsk_socket__update_xskmap(struct xsk_socket *xsk, int xsks_map_fd);

Example

You can find an example at AF_XDP-example

Docs could be improved

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