intrte_epoll_wait(intepfd,structrte_epoll_event*events,intmaxevents,inttimeout)
It waits for events on the epoll instance. Retries if signal received.
Parametersepfd Epoll instance fd on which the caller wait for events.
events Memory area contains the events that will be available for the caller.
maxevents Up to maxevents are returned, must greater than zero.
timeout Specifying a timeout of -1 causes a block indefinitely. Specifying a timeout equal to zero
cause to return immediately.
Returns
• On success, returns the number of available event.
• On failure, a negative value.
intrte_epoll_wait_interruptible(intepfd,structrte_epoll_event*events,intmaxevents,inttimeout)
It waits for events on the epoll instance. Does not retry if signal received.
Parametersepfd Epoll instance fd on which the caller wait for events.
events Memory area contains the events that will be available for the caller.
maxevents Up to maxevents are returned, must greater than zero.
timeout Specifying a timeout of -1 causes a block indefinitely. Specifying a timeout equal to zero
cause to return immediately.
Returns
• On success, returns the number of available event.
• On failure, a negative value.
intrte_epoll_ctl(intepfd,intop,intfd,structrte_epoll_event*event)
It performs control operations on epoll instance referred by the epfd. It requests that the operation op
be performed for the target fd.
Parametersepfd Epoll instance fd on which the caller perform control operations.
op The operation be performed for the target fd.
fd The target fd on which the control ops perform.
event Describes the object linked to the fd. Note: The caller must take care the object deletion
after CTL_DEL.
Returns
• On success, zero.
• On failure, a negative value.