syscall.sh / mipsn32 / write
write
write to a file descriptor
sys_write(unsigned int fd, const char *buf, size_t count)
| number | 6001 (0x1771) |
|---|---|
| abi | n32 |
| entry point | sys_write |
| since | Linux 5.0 |
| man page | write(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 6001, the syscall number |
a0 | unsigned int fd |
a1 | const char *buf |
a2 | size_t count |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 1
- x86 4
- arm64 64
- arm 4
- riscv64 64
- x32 1073741825
- loongarch64 64
- ppc64 4
- ppc 4
- s390x 4
- mips64 5001
- mipso32 4004
- alpha 4
- arc 64
- csky 64
- hexagon 64
- m68k 4
- microblaze 4
- nios2 64
- openrisc 64
- parisc 4
- sh 4
- sparc 4
- sparc64 4
- xtensa 13
Get this as JSON: https://api.syscall.sh/v2/syscalls/mipsn32/write