syscall.sh / arm64 / lseek

lseek

reposition read/write file offset

sys_lseek(unsigned int fd, off_t offset, unsigned int whence)
number62 (0x3e)
abi64
entry pointsys_lseek
sinceLinux 3.7
man pagelseek(2)
sourceelixir.bootlin.com

Registers

registervalue
x862, the syscall number
x0unsigned int fd
x1off_t offset
x2unsigned int whence
x0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/arm64/lseek