diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:40:15 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:40:15 +0000 |
commit | 399644e47874bff147afb19c89228901ac39340e (patch) | |
tree | 1c4c0b733f4c16b5783b41bebb19194a9ef62ad1 /man3type/epoll_event.3type | |
parent | Initial commit. (diff) | |
download | manpages-399644e47874bff147afb19c89228901ac39340e.tar.xz manpages-399644e47874bff147afb19c89228901ac39340e.zip |
Adding upstream version 6.05.01.upstream/6.05.01
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'man3type/epoll_event.3type')
-rw-r--r-- | man3type/epoll_event.3type | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/man3type/epoll_event.3type b/man3type/epoll_event.3type new file mode 100644 index 0000000..0a9fa74 --- /dev/null +++ b/man3type/epoll_event.3type @@ -0,0 +1,55 @@ +.\" Copyright (c) 2022 by Alejandro Colomar <alx@kernel.org> +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.\" +.TH epoll_event 3type 2023-07-08 "Linux man-pages 6.05.01" +.SH NAME +epoll_event, epoll_data, epoll_data_t +\- epoll event +.SH LIBRARY +Standard C library +.RI ( libc ) +.SH SYNOPSIS +.EX +.B #include <sys/epoll.h> +.PP +.B struct epoll_event { +.BR " uint32_t events;" " /* Epoll events */" +.BR " epoll_data_t data;" " /* User data variable */" +.B }; +.PP +.B union epoll_data { +.B " void *ptr;" +.B " int fd;" +.B " uint32_t u32;" +.B " uint64_t u64;" +.B }; +.PP +.B "typedef union epoll_data epoll_data_t;" +.EE +.SH DESCRIPTION +The +.I epoll_event +structure specifies data that the kernel should save and +return when the corresponding file descriptor becomes ready. +.SH VERSIONS +.SS C library/kernel differences +The Linux kernel headers also provide this type, +with a slightly different definition: +.PP +.in +4n +.EX +#include <linux/eventpoll.h> +\& +struct epoll_event { + __poll_t events; + __u64 data; +}; +.EE +.in +.SH STANDARDS +Linux. +.SH SEE ALSO +.BR epoll_wait (2), +.BR epoll_ctl (2) |