syscall.sh / x86 / sendmsg
sendmsg
send a message on a socket
sys_sendmsg(int fd, struct user_msghdr *msg, unsigned int flags)
| number | 370 (0x172) |
|---|---|
| abi | i386 |
| entry point | sys_sendmsg |
| since | Linux 4.3 |
| man page | sendmsg(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 370, the syscall number |
ebx | int fd |
ecx | struct user_msghdr *msg |
edx | unsigned int flags |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- x64 46
- arm64 211
- arm 296
- riscv64 211
- x32 1073742342
- loongarch64 211
- ppc64 341
- ppc 341
- s390x 370
- mips64 5045
- mipsn32 6045
- mipso32 4179
- alpha 114
- arc 211
- csky 211
- hexagon 211
- m68k 367
- microblaze 360
- nios2 211
- openrisc 211
- parisc 183
- sh 355
- sparc 114
- sparc64 114
- xtensa 106
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/sendmsg