diff options
| author | Laurent Vivier <lvivier@redhat.com> | 2025-10-21 23:01:11 +0200 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-10-30 15:32:12 +0100 |
| commit | 965ea66068e653934c0016281df86c17e2a65625 (patch) | |
| tree | f644a3198f9d6acb3dbb028874831fd3001404cf /test | |
| parent | 8bfa47a5cf0576dd18e8716e1c1e142954a0b72d (diff) | |
| download | passt-965ea66068e653934c0016281df86c17e2a65625.tar passt-965ea66068e653934c0016281df86c17e2a65625.tar.gz passt-965ea66068e653934c0016281df86c17e2a65625.tar.bz2 passt-965ea66068e653934c0016281df86c17e2a65625.tar.lz passt-965ea66068e653934c0016281df86c17e2a65625.tar.xz passt-965ea66068e653934c0016281df86c17e2a65625.tar.zst passt-965ea66068e653934c0016281df86c17e2a65625.zip | |
epoll_ctl: Extract epoll operations
Centralize epoll_add() and epoll_del() helper functions into new
epoll_ctl.c/h files.
This also moves the union epoll_ref definition from passt.h to
epoll_ctl.h where it's more logically placed.
The new epoll_add() helper simplifies adding file descriptors to epoll
by taking an epoll_ref and events, handling error reporting
consistently across all call sites.
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
[sbrivio: Include epoll_ctl.h from netlink.c as it's now needed there]
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
