recvfrom on ia32

receive a message from a socket

compat_sys_recvfrom(int fd, void *ubuf, size_t size, unsigned int flags, struct sockaddr *addr, int *addr_len)
number371 (0x173)
abii386
entry pointcompat_sys_recvfrom
sinceLinux 4.3
man pagerecvfrom(2)
sourceelixir.bootlin.com

Registers

registervalue
eax371, the syscall number
ebxint fd
ecxvoid *ubuf
edxsize_t size
esiunsigned int flags
edistruct sockaddr *addr
ebpint *addr_len
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/recvfrom