syscall.sh / arm / fcntl

fcntl

manipulate file descriptor

sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
number55 (0x37)
abicommon
entry pointsys_fcntl
sinceLinux 4.10
man pagefcntl(2)
sourceelixir.bootlin.com

Registers

registervalue
r755, the syscall number
r0unsigned int fd
r1unsigned int cmd
r2unsigned long arg
r0the 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/arm/fcntl