syscall.sh / mipsn32 / socket
socket
create an endpoint for communication
sys_socket(int family, int type, int protocol)
| number | 6040 (0x1798) |
|---|---|
| abi | n32 |
| entry point | sys_socket |
| since | Linux 5.0 |
| man page | socket(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 6040, the syscall number |
a0 | int family |
a1 | int type |
a2 | int protocol |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 41
- x86 359
- arm64 198
- arm 281
- riscv64 198
- x32 1073741865
- loongarch64 198
- ppc64 326
- ppc 326
- s390x 359
- mips64 5040
- mipso32 4183
- alpha 97
- arc 198
- csky 198
- hexagon 198
- m68k 356
- microblaze 345
- nios2 198
- openrisc 198
- parisc 17
- sh 340
- sparc 97
- sparc64 97
- xtensa 96
Get this as JSON: https://api.syscall.sh/v2/syscalls/mipsn32/socket