syscall.sh / s390x / lseek

lseek

reposition read/write file offset

sys_lseek(unsigned int fd, off_t offset, unsigned int whence)
number19 (0x13)
abicommon
entry pointsys_lseek
sinceLinux 4.16
man pagelseek(2)
sourceelixir.bootlin.com

Registers

registervalue
r119, the syscall number
r2unsigned int fd
r3off_t offset
r4unsigned int whence
r2the 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/s390x/lseek