syscall.sh / s390x / select
select
synchronous I/O multiplexing
sys_select(int n, fd_set *inp, fd_set *outp, fd_set *exp, struct __kernel_old_timeval *tvp)
| number | 142 (0x8e) |
|---|---|
| abi | common |
| entry point | sys_select |
| since | Linux 4.16 |
| man page | select(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r1 | 142, the syscall number |
r2 | int n |
r3 | fd_set *inp |
r4 | fd_set *outp |
r5 | fd_set *exp |
r6 | struct __kernel_old_timeval *tvp |
r2 | the return value |
Then run svc 0 to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/s390x/select