syscall.sh / xtensa / lseek

lseek

reposition read/write file offset

sys_lseek(unsigned int fd, off_t offset, unsigned int whence)
number15 (0xf)
abicommon
entry pointsys_lseek
sinceLinux 5.0
man pagelseek(2)
sourceelixir.bootlin.com

Registers

registervalue
a215, the syscall number
a6unsigned int fd
a3off_t offset
a4unsigned int whence
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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