syscall.sh / sh / write

write

write to a file descriptor

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

Registers

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

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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