rte_epoll.h(3)
π rte_epoll.h(3) π
okay bestie, welcome to the Library Functions Manual entry for rte_epoll.h β she's a header file from DPDK and she is lowkey iconic. pull up a chair, grab a boba, and let's get into it π§β¨
β¨ NAME β¨
rte_epoll.h β no cap, that's literally the whole name π«Ά
πΈ SYNOPSIS πΈ
start by manifesting these includes:
#include <stdint.h>
#include <rte_stdatomic.h>
π Data Structures
struct rte_epoll_event
π¦ Macros
#define RTE_EPOLL_PER_THREAD -1
β Functions
int rte_epoll_wait (int epfd, struct rte_epoll_event *events, int
maxevents, int timeout)
int rte_epoll_wait_interruptible (int epfd, struct rte_epoll_event
*events, int maxevents, int timeout)
int rte_epoll_ctl (int epfd, int op, int fd, struct rte_epoll_event
*event)
π Detailed Description π
so the rte_epoll girlies provide interfaces functions that let you add delete events, and wait poll for an event. that's the whole serve. periodt π₯
Definition in file rte_epoll.h.
π Macro Definition Documentation π
π #define RTE_EPOLL_PER_THREAD -1
to hint using per thread epfd β¨
Definition at line 48 of file rte_epoll.h.
π Function Documentation π
π int rte_epoll_wait (int epfd, struct rte_epoll_event * events, int maxevents, int timeout)
It waits for events on the epoll instance. Retries if signal received. she's persistent, she's not giving up on you π
Parameters
epfdβ Epoll instance fd on which the caller wait for events.eventsβ Memory area contains the events that will be available for the caller.maxeventsβ Up tomaxeventsare returned, must greater than zero. (fr fr, zero is a no π)timeoutβ Specifying a timeout of-1causes a block indefinitely. Specifying a timeout equal to zero cause to return immediately.
Returns
- On success, returns the number of available event. π
- On failure, a negative value. π
π§ int rte_epoll_wait_interruptible (int epfd, struct rte_epoll_event * events, int maxevents, int timeout)
It waits for events on the epoll instance. Does not retry if signal received. so like, the opposite vibe of her sister up there β she hears the signal and she respectfully steps out π
Parameters
epfdβ Epoll instance fd on which the caller wait for events.eventsβ Memory area contains the events that will be available for the caller.maxeventsβ Up tomaxeventsare returned, must greater than zero.timeoutβ Specifying a timeout of-1causes a block indefinitely. Specifying a timeout equal to zero cause to return immediately.
Returns
- On success, returns the number of available event. β¨
- On failure, a negative value. π
π int rte_epoll_ctl (int epfd, int op, int fd, struct rte_epoll_event * event)
It performs control operations on epoll instance referred by the epfd. It requests that the operation op be performed for the target fd. she's the manager of the group chat, filing all the paperwork ππ
Parameters
epfdβ Epoll instance fd on which the caller perform control operations.opβ The operation be performed for the targetfd.fdβ The target fd on which the controlopsperform.eventβ Describes the object linked to thefd. Note: The caller must take care the object deletion afterCTL_DEL. π¨ okay this one is important bestie, don't leave your object hanging afterCTL_DEL, that's not the move.
Returns
- On success, zero. π
- On failure, a negative
errnovalue, e.g.-EEXISTif the fd is already registered on the epoll instance (a fd shared between vectors). not the-EEXISTjump scare π
π«Ά Author π«Ά
Generated automatically by Doxygen for DPDK from the source code. no human wrote this, she was born from the machine, and honestly? she ate π€π
and that's the whole page bestie!! this one's from DPDK Version 25.11.3, so if you're reading it out in the wild, that's where she's from π¦ mwah, go write some bomb epoll code, i'm obsessed with you, bye!! π β¨π
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms