syscall.sh / xtensa / read

read

read from a file descriptor

sys_read(unsigned int fd, char *buf, size_t count)
number12 (0xc)
abicommon
entry pointsys_read
sinceLinux 5.0
man pageread(2)
sourceelixir.bootlin.com

Registers

registervalue
a212, the syscall number
a6unsigned int fd
a3char *buf
a4size_t count
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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