syscall.sh / xtensa / fcntl

fcntl

manipulate file descriptor

sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
number67 (0x43)
abicommon
entry pointsys_fcntl
sinceLinux 5.0
man pagefcntl(2)
sourceelixir.bootlin.com

Registers

registervalue
a267, the syscall number
a6unsigned int fd
a3unsigned int cmd
a4unsigned long arg
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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