syscall.sh / mipso32 / getsockopt

getsockopt

get and set options on sockets

sys_getsockopt(int fd, int level, int optname, char *optval, int *optlen)
number4173 (0x104d)
abio32
entry pointsys_getsockopt
sinceLinux 5.0
man pagegetsockopt(2)
sourceelixir.bootlin.com

Registers

registervalue
v04173, the syscall number
a0int fd
a1int level
a2int optname
a3char *optval
sp+16int *optlen
v0the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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