socket on metag
create an endpoint for communication
sys_socket(int family, int type, int protocol)
| number | 198 (0xc6) |
|---|---|
| abi | common |
| entry point | sys_socket |
| since | Linux 3.9 or earlier (3.9 is the first release scanned for metag) |
| man page | socket(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 198, the syscall number |
D1Ar1 | int family |
D0Ar2 | int type |
D1Ar3 | int protocol |
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 41
- x86 359
- arm64 198
- arm 281
- riscv64 198
- ia32 359
- x32 1073741865
- loongarch64 198
- ppc64 326
- ppc 326
- s390x 359
- mips64 5040
- mipsn32 6040
- mipso32 4183
- alpha 97
- arc 198
- blackfin 329, removed in 4.17
- csky 198
- hexagon 198
- ia64 1190, removed in 6.7
- m68k 356
- microblaze 345
- nds32 198, removed in 5.18
- nios2 198
- openrisc 198
- parisc 17
- score 198, removed in 4.17
- sh 340
- sparc 97
- sparc64 97
- tilegx 198, removed in 4.17
- tilepro 198, removed in 4.17
- xtensa 96
Get this as JSON: https://api.syscall.sh/v2/syscalls/metag/socket?kernel=all