syscall.sh / x64 / read

read

read from a file descriptor

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

Registers

registervalue
rax0, the syscall number
rdiunsigned int fd
rsichar *buf
rdxsize_t count
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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