syscall.sh / sh / fallocate

fallocate

manipulate file space

sys_fallocate(int fd, int mode, loff_t offset, loff_t len)
number324 (0x144)
abicommon
entry pointsys_fallocate
sinceLinux 5.0
man pagefallocate(2)
sourceelixir.bootlin.com

Registers

registervalue
r3324, the syscall number
r4int fd
r5int mode
r6loff_t offset
r7loff_t len
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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