Skip to content

Libxdp function xdp_program__from_fd

Definition

Return the xdp_program associated to a file descriptor.

Returns

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

-ENOENT if file not found

Usage

struct xdp_program *xdp_program__from_fd(int fd);

Example

Docs could be improved

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