1epoll_event(3type)                                          epoll_event(3type)
2
3
4

NAME

6       epoll_event, epoll_data, epoll_data_t - epoll event
7

LIBRARY

9       Standard C library (libc)
10

SYNOPSIS

12       #include <sys/epoll.h>
13
14       struct epoll_event {
15           uint32_t      events;  /* Epoll events */
16           epoll_data_t  data;    /* User data variable */
17       };
18
19       union epoll_data {
20           void     *ptr;
21           int       fd;
22           uint32_t  u32;
23           uint64_t  u64;
24       };
25
26       typedef union epoll_data  epoll_data_t;
27

DESCRIPTION

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

VERSIONS

33   C library/kernel differences
34       The Linux kernel headers also provide this type, with a  slightly  dif‐
35       ferent definition:
36
37           #include <linux/eventpoll.h>
38
39           struct epoll_event {
40               __poll_t  events;
41               __u64     data;
42           };
43

STANDARDS

45       Linux.
46

SEE ALSO

48       epoll_wait(2), epoll_ctl(7)
49
50
51
52Linux man-pages 6.04              2023-03-30                epoll_event(3type)
Impressum