syscall.sh / s390x / exit

exit

terminate the calling thread

sys_exit(int error_code)
number1 (0x1)
abicommon
entry pointsys_exit
sinceLinux 4.16
man pageexit(2)
sourceelixir.bootlin.com

Registers

registervalue
r11, the syscall number
r2int error_code
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/exit