linux - Number of watched file descriptors inside a epoll -
i looking way check current number of file descriptors being monitored epoll instance. use following creating , populating epoll instance
epoll_create epoll_ctl
platform gnu/linux.
as far know, there no system call available can provide count of file descriptors getting monitored epoll. can achieve maintaining 1 counter variable. increment/decrement variable after adding/removing file descriptor epoll using epoll_ctl().
Comments
Post a Comment