sendmsg on metag
send a message on a socket
sys_sendmsg(int fd, struct user_msghdr *msg, unsigned int flags)
| number | 211 (0xd3) |
|---|---|
| abi | common |
| entry point | sys_sendmsg |
| since | Linux 3.9 or earlier (3.9 is the first release scanned for metag) |
| man page | sendmsg(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 211, the syscall number |
D1Ar1 | int fd |
D0Ar2 | struct user_msghdr *msg |
D1Ar3 | unsigned int flags |
D0Re0 | the return value |
Then run SWITCH #0x440001 to enter the kernel.
Values wider than one register are packed into consecutive arguments.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 46
- x86 370
- arm64 211
- arm 296
- riscv64 211
- ia32 370
- x32 1073742342
- loongarch64 211
- ppc64 341
- ppc 341
- s390x 370
- mips64 5045
- mipsn32 6045
- mipso32 4179
- alpha 114
- arc 211
- blackfin 325, removed in 4.17
- csky 211
- hexagon 211
- ia64 1205, removed in 6.7
- m68k 367
- microblaze 360
- nds32 211, removed in 5.18
- nios2 211
- openrisc 211
- parisc 183
- score 211, removed in 4.17
- sh 355
- sparc 114
- sparc64 114
- tilegx 211, removed in 4.17
- tilepro 211, removed in 4.17
- xtensa 106
Get this as JSON: https://api.syscall.sh/v2/syscalls/metag/sendmsg?kernel=all