syscall.sh / loongarch64 / lseek
lseek
reposition read/write file offset
sys_lseek(unsigned int fd, off_t offset, unsigned int whence)
| number | 62 (0x3e) |
|---|---|
| abi | 64 |
| entry point | sys_lseek |
| since | Linux 5.19 |
| man page | lseek(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 62, the syscall number |
a0 | unsigned int fd |
a1 | off_t offset |
a2 | unsigned int whence |
a0 | the return value |
Then run syscall 0 to enter the kernel.
Same syscall on other architectures
- x64 8
- x86 19
- arm64 62
- arm 19
- riscv64 62
- x32 1073741832
- ppc64 19
- ppc 19
- s390x 19
- mips64 5008
- mipsn32 6008
- mipso32 4019
- alpha 19
- m68k 19
- microblaze 19
- parisc 19
- sh 19
- sparc 19
- sparc64 19
- xtensa 15
Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/lseek