syscall.sh / x86 / sendmsg

sendmsg

send a message on a socket

sys_sendmsg(int fd, struct user_msghdr *msg, unsigned int flags)
number370 (0x172)
abii386
entry pointsys_sendmsg
sinceLinux 4.3
man pagesendmsg(2)
sourceelixir.bootlin.com

Registers

registervalue
eax370, the syscall number
ebxint fd
ecxstruct user_msghdr *msg
edxunsigned int flags
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/sendmsg