diff options
author | Jamie Liu <jamieliu@google.com> | 2020-01-28 13:10:41 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-01-28 13:11:43 -0800 |
commit | 34fbd8446c386fb0136dad31ab6b173f17049a58 (patch) | |
tree | e7423ae64e0d3216863270ab0bd46a29970533b3 /pkg/abi | |
parent | d99329e58492ef91b44a0bac346f757e8af2a7ec (diff) |
Add VFS2 support for epoll.
PiperOrigin-RevId: 291997879
Diffstat (limited to 'pkg/abi')
-rw-r--r-- | pkg/abi/linux/epoll.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkg/abi/linux/epoll.go b/pkg/abi/linux/epoll.go index 72083b604..0e881aa3c 100644 --- a/pkg/abi/linux/epoll.go +++ b/pkg/abi/linux/epoll.go @@ -38,8 +38,14 @@ const ( // Per-file descriptor flags. const ( - EPOLLET = 0x80000000 - EPOLLONESHOT = 0x40000000 + EPOLLEXCLUSIVE = 1 << 28 + EPOLLWAKEUP = 1 << 29 + EPOLLONESHOT = 1 << 30 + EPOLLET = 1 << 31 + + // EP_PRIVATE_BITS is fs/eventpoll.c:EP_PRIVATE_BITS, the set of all bits + // in an epoll event mask that correspond to flags rather than I/O events. + EP_PRIVATE_BITS = EPOLLEXCLUSIVE | EPOLLWAKEUP | EPOLLONESHOT | EPOLLET ) // Operation flags. |