recvfrom on metag
receive a message from a socket
sys_recvfrom(int fd, void *ubuf, size_t size, unsigned int flags, struct sockaddr *addr, int *addr_len)
| number | 207 (0xcf) |
|---|---|
| abi | common |
| entry point | sys_recvfrom |
| since | Linux 3.9 or earlier (3.9 is the first release scanned for metag) |
| man page | recvfrom(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 207, the syscall number |
D1Ar1 | int fd |
D0Ar2 | void *ubuf |
D1Ar3 | size_t size |
D0Ar4 | unsigned int flags |
D1Ar5 | struct sockaddr *addr |
D0Ar6 | int *addr_len |
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 45
- x86 371
- arm64 207
- arm 292
- riscv64 207
- ia32 371
- x32 1073742341
- loongarch64 207
- ppc64 337
- ppc 337
- s390x 371
- mips64 5044
- mipsn32 6044
- mipso32 4176
- alpha 125
- arc 207
- blackfin 322, removed in 4.17
- csky 207
- hexagon 207
- ia64 1201, removed in 6.7
- m68k 368
- microblaze 355
- nds32 207, removed in 5.18
- nios2 207
- openrisc 207
- parisc 123
- score 207, removed in 4.17
- sh 351
- sparc 125
- sparc64 125
- tilegx 207, removed in 4.17
- tilepro 207, removed in 4.17
- xtensa 111
Get this as JSON: https://api.syscall.sh/v2/syscalls/metag/recvfrom?kernel=all