• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _UAPI_LINUX_EVENTPOLL_H
8 #define _UAPI_LINUX_EVENTPOLL_H
9 #include <bits/epoll_event.h>
10 #include <linux/fcntl.h>
11 #include <linux/types.h>
12 #define EPOLL_CLOEXEC O_CLOEXEC
13 #define EPOLL_CTL_ADD 1
14 #define EPOLL_CTL_DEL 2
15 #define EPOLL_CTL_MOD 3
16 #define EPOLLIN ( __poll_t) 0x00000001
17 #define EPOLLPRI ( __poll_t) 0x00000002
18 #define EPOLLOUT ( __poll_t) 0x00000004
19 #define EPOLLERR ( __poll_t) 0x00000008
20 #define EPOLLHUP ( __poll_t) 0x00000010
21 #define EPOLLNVAL ( __poll_t) 0x00000020
22 #define EPOLLRDNORM ( __poll_t) 0x00000040
23 #define EPOLLRDBAND ( __poll_t) 0x00000080
24 #define EPOLLWRNORM ( __poll_t) 0x00000100
25 #define EPOLLWRBAND ( __poll_t) 0x00000200
26 #define EPOLLMSG ( __poll_t) 0x00000400
27 #define EPOLLRDHUP ( __poll_t) 0x00002000
28 #define EPOLL_URING_WAKE (( __poll_t) (1U << 27))
29 #define EPOLLEXCLUSIVE (( __poll_t) (1U << 28))
30 #define EPOLLWAKEUP (( __poll_t) (1U << 29))
31 #define EPOLLONESHOT (( __poll_t) (1U << 30))
32 #define EPOLLET (( __poll_t) (1U << 31))
33 #ifdef __x86_64__
34 #define EPOLL_PACKED __attribute__((packed))
35 #else
36 #define EPOLL_PACKED
37 #endif
38 struct epoll_params {
39   __u32 busy_poll_usecs;
40   __u16 busy_poll_budget;
41   __u8 prefer_busy_poll;
42   __u8 __pad;
43 };
44 #define EPOLL_IOC_TYPE 0x8A
45 #define EPIOCSPARAMS _IOW(EPOLL_IOC_TYPE, 0x01, struct epoll_params)
46 #define EPIOCGPARAMS _IOR(EPOLL_IOC_TYPE, 0x02, struct epoll_params)
47 #endif
48