getsockopt on ia32

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.

This compat ABI is only available when the kernel is built with CONFIG_IA32_EMULATION.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/ia32/getsockopt