i am using EPOLL and eventfd for IPC in threads but i am not getting the differences between the arguments epoll file descriptor and event file descriptor
returns the epoll file descriptor, also called efd. This descriptor is use for polling(epoll_wait) and control(epoll_ctl) commands.
event file descriptor : Normal socket fd return from socket or accept like system calls knows as event file descriptor. These file descriptors are set events like EPOLLIN, EPOLLOUT ,EPOLLET etc..
event file descriptors are register or bind on event file descriptor for polling the events.
epoll file descriptor : system call :
returns the
epoll
file descriptor, also calledefd
. This descriptor is use for polling(epoll_wait
) and control(epoll_ctl) commands.event file descriptor : Normal socket fd return from
socket
oraccept
like system calls knows asevent
file descriptor. These file descriptors are set events likeEPOLLIN
,EPOLLOUT
,EPOLLET
etc..event file descriptors are register or bind on event file descriptor for polling the events.