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)
number62 (0x3e)
abi32
entry pointsys_llseek
sinceLinux 3.19
man pagellseek(2)
sourceelixir.bootlin.com

Registers

registervalue
r262, the syscall number
r4unsigned int fd
r5unsigned long offset_high
r6unsigned long offset_low
r7loff_t *result
r8unsigned int whence
r2the 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