Skip to content

Libxdp function xsk_socket__fd

Definition

Allow you to get the file descriptor of the socket.

Returns

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

-EINVAL if arguments are invalid

Usage

int xsk_socket__fd(const struct xsk_socket *xsk);

Example

Docs could be improved

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