Linux

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



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:
epoll_event type:

epollin/out demo code:

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

Intro Music:

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

[ad_2]

source

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button