Miou_epollSourceA direct binding of epoll(7).
An epoll instance.
add t fd flags registers fd. Returns 0 on success, otherwise the errno (registering a descriptor that is already there gives EEXIST).
upd t fd flags changes (or re-arms) the events watched for fd. Returns 0 on success, otherwise the errno (typically ENOENT if fd was closed in the meantime, which drops it from the set automatically).
del t fd stops watching fd.
wait t events timeout fills events and returns how many descriptors are ready. An interruption by a signal returns 0.
iter events n fn applies fn to the n descriptors reported ready.