syscall.sh / arm64 / fcntl

fcntl

manipulate file descriptor

sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
number25 (0x19)
abi64
entry pointsys_fcntl
sinceLinux 3.7
man pagefcntl(2)
sourceelixir.bootlin.com

Registers

registervalue
x825, the syscall number
x0unsigned int fd
x1unsigned int cmd
x2unsigned long arg
x0the 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/arm64/fcntl