syscall.sh / nios2 / write

write

write to a file descriptor

sys_write(unsigned int fd, const char *buf, size_t count)
number64 (0x40)
abicommon
entry pointsys_write
sinceLinux 3.19
man pagewrite(2)
sourceelixir.bootlin.com

Registers

registervalue
r264, the syscall number
r4unsigned int fd
r5const char *buf
r6size_t count
r2the return value

Then run trap to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/nios2/write