syscall.sh / x86 / getsockopt

getsockopt

get and set options on sockets

sys_getsockopt(int fd, int level, int optname, char *optval, int *optlen)
number365 (0x16d)
abii386
entry pointsys_getsockopt
sinceLinux 4.3
man pagegetsockopt(2)
sourceelixir.bootlin.com

Registers

registervalue
eax365, the syscall number
ebxint fd
ecxint level
edxint optname
esichar *optval
ediint *optlen
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/getsockopt