All About Epoll - Scalable I/O Syscalls in Linux!

Опубликовано: 10 Май 2025
на канале: hoff._world
9,293
314

Epoll is a powerful Linux kernel interface for waiting on multiple file descriptors at once without threading. We watch some pipes as an example.

WE POLLIN

epoll man page: https://man7.org/linux/man-pages/man7...
epoll_event type: https://man7.org/linux/man-pages/man3...

epollin/out demo code: https://github.com/hoff-dot-world/wep...

Editor: Kate (xoxo KDE)
Colours: Custom (based on Monokai tho)
LSP Server: clangd

Intro Music:    • Carcelera: Reflejo Andaluz  

Chapters
00:00 - Intro and Overview
00:47 - How Epoll works in Code
03:38 - Initialising Epoll with epoll_create1
05:05 - Creating Pipes to watch
05:33 - The epoll_event struct
07:16 - Adding to Epoll with epoll_ctl
10:28 - How is the demo going to work?
11:21 - Waiting on events with epoll_wait
12:35 - Watching read-ready events with EPOLLIN
15:41 - Edge Triggering vs. Level Triggering
17:08 - Deleting from Epoll with epoll_ctl
17:47 - Watching write-ready events with EPOLLOUT