syscall.sh / csky / llseek
llseek
reposition read/write file offset
sys_llseek(unsigned int fd, unsigned long offset_high, unsigned long offset_low, loff_t *result, unsigned int whence)
| number | 62 (0x3e) |
|---|---|
| abi | 32 |
| entry point | sys_llseek |
| since | Linux 4.20 |
| man page | llseek(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r7 | 62, the syscall number |
a0 | unsigned int fd |
a1 | unsigned long offset_high |
a2 | unsigned long offset_low |
a3 | loff_t *result |
r4 | unsigned int whence |
a0 | the return value |
Then run trap 0 to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/csky/llseek