syscall.sh / arc / 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 3.9 |
| man page | llseek(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r8 | 62, the syscall number |
r0 | unsigned int fd |
r1 | unsigned long offset_high |
r2 | unsigned long offset_low |
r3 | loff_t *result |
r4 | unsigned int whence |
r0 | the return value |
Then run trap0 to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/arc/llseek