syscall.sh / s390x / poll
poll
wait for some event on a file descriptor
sys_poll(struct pollfd *ufds, unsigned int nfds, int timeout_msecs)
| number | 168 (0xa8) |
|---|---|
| abi | common |
| entry point | sys_poll |
| since | Linux 4.16 |
| man page | poll(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r1 | 168, the syscall number |
r2 | struct pollfd *ufds |
r3 | unsigned int nfds |
r4 | int timeout_msecs |
r2 | the return value |
Then run svc 0 to enter the kernel.
Same syscall on other architectures
- x64 7
- x86 168
- arm 168
- x32 1073741831
- ppc64 167
- ppc 167
- mips64 5007
- mipsn32 6007
- mipso32 4188
- alpha 94
- m68k 168
- microblaze 168
- parisc 168
- sh 168
- sparc 153
- sparc64 153
- xtensa 16
Get this as JSON: https://api.syscall.sh/v2/syscalls/s390x/poll