fcntl on blackfin
manipulate file descriptor
sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
| number | 55 (0x37) |
|---|---|
| abi | common |
| entry point | sys_fcntl |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for blackfin) |
| man page | fcntl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
P0 | 55, the syscall number |
R0 | unsigned int fd |
R1 | unsigned int cmd |
R2 | unsigned long arg |
R0 | the return value |
Then run excpt 0 to enter the kernel.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 72
- x86 55
- arm64 25
- arm 55
- riscv64 25
- ia32 55
- x32 1073741896
- loongarch64 25
- ppc64 55
- ppc 55
- s390x 55
- mips64 5070
- mipsn32 6070
- mipso32 4055
- alpha 92
- cris 55, removed in 4.17
- frv 55, removed in 4.17
- ia64 1066, removed in 6.7
- m68k 55
- microblaze 55
- mn10300 55, removed in 4.17
- parisc 55
- score 1052, removed in 4.17
- sh 55
- sparc 92
- sparc64 92
- tilegx 25, removed in 4.17
- xtensa 67
Get this as JSON: https://api.syscall.sh/v2/syscalls/blackfin/fcntl?kernel=all