[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: GXZ5MVBWgAA4Ugq.jpg (310 KB, 2048x1302)
310 KB JPG
previous: >>108772834

#define __NR_epoll_create            213
#define __NR_epoll_ctl_old 214
#define __NR_epoll_wait_old 215
#define __NR_epoll_wait 232
#define __NR_epoll_ctl 233
#define __NR_epoll_pwait 281
#define __NR_epoll_create1 291
#define __NR_epoll_pwait2 441

https://man7.org/linux/man-pages/man2/epoll_create.2.html
https://man7.org/linux/man-pages/man2/epoll_ctl.2.html
https://man7.org/linux/man-pages/man2/epoll_wait.2.html
https://man7.org/linux/man-pages/man7/epoll.7.html

tl;dr:
monitor file descriptors

not even going to comment on the naming scheme here. it's genuinely beyond parody.

there are so many different fd monitoring/polling implementations... it's interesting. but epoll is genuinely pretty good. a bit complicated, but any decently large software system is going to be. especially when it has to interface with the linux filesystem. the manpage (section 7) for epoll is pretty decent, as well. one of the better written ones. that's always a nice surprise when it happens
what do you think about this feature suite, anon? have you ever had occasion to use it? share with the class

relevant resources:
man man

man syscalls

https://man7.org/linux/man-pages/
https://linux.die.net/man/
https://elixir.bootlin.com/linux/
https://elixir.bootlin.com/musl/
https://elixir.bootlin.com/glibc/
>>
bampu
>>
now this is a real syscall
>>
>>108781522
there are some complementary ways to get other interfaces as file descriptors - timerfd, eventfd, signalfd, procfd... and use them with epoll. makes you wonder why didn't unix use fds for these in the first place
>>
>>108781522
how so?
>>
Finally, we got a real one.
>what do you think about this feature suite, anon?
It's awesome.
>have you ever had occasion to use it? share with the class
I work in an ancient codebase that really SHOULD be using it, but it uses select instead because it's older than I am and my retarded managers don't care about fixing tech debt.
It's okay though. If someone opens 500 connections, it hits the fd limit and blows up.
>>
>>108779335
>no maid
>wagie complaining about hiring practices
Bad thread.
>>
>>108782585
Good thread actually. Maidposters need to go back to the shitholes they came from.
>>
>>108782590
Maidposters came from here. They're indigenous to 4Chan, especially /g/. You'd know this if you weren't a tourist.
>>
>>108782984
that one guy always posting dragon maid gives me the ick



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.