syscall.sh / sh / poll

poll

wait for some event on a file descriptor

sys_poll(struct pollfd *ufds, unsigned int nfds, int timeout_msecs)
number168 (0xa8)
abicommon
entry pointsys_poll
sinceLinux 5.0
man pagepoll(2)
sourceelixir.bootlin.com

Registers

registervalue
r3168, the syscall number
r4struct pollfd *ufds
r5unsigned int nfds
r6int timeout_msecs
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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