syscall.sh / x86 / exit

exit

terminate the calling thread

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

Registers

registervalue
eax1, the syscall number
ebxint error_code
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

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