epoll_pwait on loongarch64

wait for an I/O event on an epoll file descriptor

sys_epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const sigset_t *sigmask, size_t sigsetsize)
number22 (0x16)
abicommon
kconfigCONFIG_EPOLL
familyepoll see the whole family on loongarch64
entry pointsys_epoll_pwait
sinceLinux 5.19 or earlier (5.19 is the first release scanned for loongarch64)
man pageepoll_pwait(2)
sourceelixir.bootlin.com

Registers

registervalue
a722, the syscall number
a0int epfd
a1struct epoll_event *events
a2int maxevents
a3int timeout
a4const sigset_t *sigmask
a5size_t sigsetsize
a0the return value

Then run syscall 0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/epoll_pwait