Files
Willem de Bruijn d9d0b12dc3 UPSTREAM: epoll: add syscall epoll_pwait2
Add syscall epoll_pwait2, an epoll_wait variant with nsec resolution that
replaces int timeout with struct timespec.  It is equivalent otherwise.

    int epoll_pwait2(int fd, struct epoll_event *events,
                     int maxevents,
                     const struct timespec *timeout,
                     const sigset_t *sigset);

The underlying hrtimer is already programmed with nsec resolution.
pselect and ppoll also set nsec resolution timeout with timespec.

The sigset_t in epoll_pwait has a compat variant. epoll_pwait2 needs
the same.

For timespec, only support this new interface on 2038 aware platforms
that define __kernel_timespec_t. So no CONFIG_COMPAT_32BIT_TIME.

Link: https://lkml.kernel.org/r/20201121144401.3727659-3-willemdebruijn.kernel@gmail.com
Change-Id: I8cb4e756aacb4bee7cbe1c2cb5320a59e07626f8
Signed-off-by: Willem de Bruijn <willemb@google.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2026-01-15 15:45:56 +05:30
..
2021-11-22 17:20:47 +00:00
2026-01-15 15:45:47 +05:30
2025-12-17 19:46:29 +05:30
2021-11-22 17:20:47 +00:00
2026-01-15 15:45:47 +05:30
2021-11-22 17:20:47 +00:00
2025-12-17 19:40:58 +05:30
2021-11-27 20:04:30 +00:00
2021-11-27 20:04:27 +00:00
2021-11-27 20:04:27 +00:00
2025-12-13 18:13:05 +05:30
2025-12-13 18:13:05 +05:30
2025-12-28 15:45:27 +05:30
2025-12-28 15:58:14 +05:30
2025-12-17 12:25:15 +05:30
2021-11-27 20:04:27 +00:00
2021-12-14 10:16:55 +01:00
2021-11-27 20:04:27 +00:00