syscall.sh / x64 / fcntl

fcntl

manipulate file descriptor

sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
number72 (0x48)
abicommon
entry pointsys_fcntl
sinceLinux 3.3
man pagefcntl(2)
sourceelixir.bootlin.com

Registers

registervalue
rax72, the syscall number
rdiunsigned int fd
rsiunsigned int cmd
rdxunsigned long arg
raxthe return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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