syscall.sh / s390x / dup

dup

duplicate a file descriptor

sys_dup(unsigned int fildes)
number41 (0x29)
abicommon
entry pointsys_dup
sinceLinux 4.16
man pagedup(2)
sourceelixir.bootlin.com

Registers

registervalue
r141, the syscall number
r2unsigned int fildes
r2the 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/dup