syscall.sh / x86 / clone

clone

create a child process

sys_clone(unsigned long clone_flags, unsigned long newsp, int *parent_tidptr, unsigned long tls, int *child_tidptr)
number120 (0x78)
abii386
entry pointsys_clone
sinceLinux 3.3
man pageclone(2)
sourceelixir.bootlin.com

Registers

registervalue
eax120, the syscall number
ebxunsigned long clone_flags
ecxunsigned long newsp
edxint *parent_tidptr
esiunsigned long tls
ediint *child_tidptr
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/clone