fcntl on tilegx
manipulate file descriptor
sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
| number | 25 (0x19) |
|---|---|
| abi | common |
| entry point | sys_fcntl |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for tilegx) |
| man page | fcntl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r10 | 25, the syscall number |
r0 | unsigned int fd |
r1 | unsigned int cmd |
r2 | unsigned long arg |
r0 | the return value |
Then run swint1 to enter the kernel.
The kernel uses r1 to signal an error.
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
- blackfin 55, removed in 4.17
- 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
- xtensa 67
Get this as JSON: https://api.syscall.sh/v2/syscalls/tilegx/fcntl?kernel=all