syscall.sh / xtensa / fcntl
fcntl
manipulate file descriptor
sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
| number | 67 (0x43) |
|---|---|
| abi | common |
| entry point | sys_fcntl |
| since | Linux 5.0 |
| man page | fcntl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a2 | 67, the syscall number |
a6 | unsigned int fd |
a3 | unsigned int cmd |
a4 | unsigned long arg |
a2 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 72
- x86 55
- arm64 25
- arm 55
- riscv64 25
- x32 1073741896
- loongarch64 25
- ppc64 55
- ppc 55
- s390x 55
- mips64 5070
- mipsn32 6070
- mipso32 4055
- alpha 92
- m68k 55
- microblaze 55
- parisc 55
- sh 55
- sparc 92
- sparc64 92
Get this as JSON: https://api.syscall.sh/v2/syscalls/xtensa/fcntl