Libbpf userspace function ring_buffer__epoll_fd
Get an file descriptor that can be used to sleep until data is available in the ring(s).
Definition
int ring_buffer__epoll_fd(const struct ring_buffer *rb);
Parameters
rb: ring buffer manager to get theepollfile descriptor from
Returns
File descriptor of an epoll set that can be used to sleep until data is available in any of the ring buffers.
Usage
The returned file descriptor is created with epoll_create, all ring buffers in the manager are added to the epoll set. The file descriptor can be used with epoll_wait to sleep until data is available in any of the ring buffers.
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome