Epoll.ctl

Calls epoll_ctl() using the current epoll file descriptor.

The current epoll file descriptor should have been sucessfully obtained by create() or epoll_create1() and not already been closed, otherwise epoll_ctl() will fail so that this method returns -1.

Parameters

op CtlOp

epoll_ctl opcode

fd int

file descriptor to register for events

event epoll_event_t

epoll_event_t struct instance containing the events to register fd for and optional user data

Return Value

Type: int

0 on success or -1 on error. On error errno is set appropriately.

Meta