epoll_event
Section: Misc. Reference Manual Pages (3type)
Updated: 2022-10-30
Index
Return to Main Contents
NAME
epoll_event, epoll_data, epoll_data_t
- epoll event
LIBRARY
Standard C library
(libc)
SYNOPSIS
#include <sys/epoll.h>
struct epoll_event {
uint32_t events; /* Epoll events */
epoll_data_t data; /* User data variable */
};
union epoll_data {
void *ptr;
int fd;
uint32_t u32;
uint64_t u64;
};
typedef union epoll_data epoll_data_t;
DESCRIPTION
The
epoll_event
structure specifies data that the kernel should save and
return when the corresponding file descriptor becomes ready.
STANDARDS
This type is Linux-specific.
NOTES
C library/kernel differences
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
epoll_wait(2),
epoll_ctl(7)
Index
- NAME
-
- LIBRARY
-
- SYNOPSIS
-
- DESCRIPTION
-
- STANDARDS
-
- NOTES
-
- C library/kernel differences
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 13:35:36 GMT, May 18, 2024