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