syscall.sh / loongarch64 / 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 5.19
man pagelseek(2)
sourceelixir.bootlin.com

Registers

registervalue
a762, the syscall number
a0unsigned int fd
a1off_t offset
a2unsigned int whence
a0the return value

Then run syscall 0 to enter the kernel.

Same syscall on other architectures

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