syscall.sh / microblaze / _llseek

_llseek

reposition read/write file offset

sys_llseek(unsigned int fd, unsigned long offset_high, unsigned long offset_low, loff_t *result, unsigned int whence)
number140 (0x8c)
abicommon
entry pointsys_llseek
sinceLinux 5.0
man page_llseek(2)
sourceelixir.bootlin.com

Registers

registervalue
r12140, the syscall number
r5unsigned int fd
r6unsigned long offset_high
r7unsigned long offset_low
r8loff_t *result
r9unsigned int whence
r3the return value

Then run brki r14,8 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/microblaze/_llseek