logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

epoll_event, epoll_data, epoll_data_t - epoll event

Description

       The  epoll_event  structure  specifies data that the kernel should save and return when the corresponding
       file descriptor becomes ready.

Library

       Standard C library (libc)

Name

       epoll_event, epoll_data, epoll_data_t - epoll event

See Also

epoll_wait(2), epoll_ctl(2)

Linux man-pages 6.9.1                              2024-05-02                                 epoll_event(3type)

Standards

       Linux.

Synopsis

#include<sys/epoll.h>structepoll_event{uint32_tevents;  /* Epoll events */
           epoll_data_tdata;    /* User data variable */
       };unionepoll_data{void*ptr;intfd;uint32_tu32;uint64_tu64;};typedefunionepoll_dataepoll_data_t;

Versions

Clibrary/kerneldifferences
       The Linux kernel headers also provide this type, with a slightly different definition:

           #include <linux/eventpoll.h>

           struct epoll_event {
               __poll_t  events;
               __u64     data;
           };

See Also