fcntl64 on tilepro
manipulate file descriptor
sys_fcntl64(unsigned int fd, unsigned int cmd, unsigned long arg)
| number | 25 (0x19) |
|---|---|
| abi | common |
| entry point | sys_fcntl64 |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for tilepro) |
| man page | fcntl64(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 for ordinary calls.
Fast atomic calls use negative numbers and have different register behavior.
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
- x86 221
- arm 221
- ia32 221
- ppc 204
- mipsn32 6212
- mipso32 4220
- arc 25
- blackfin 221, removed in 4.17
- cris 221, removed in 4.17
- csky 25
- frv 221, removed in 4.17
- hexagon 25
- m32r 221, removed in 4.17
- m68k 239
- metag 25, removed in 4.17
- microblaze 221
- mn10300 221, removed in 4.17
- nds32 25, removed in 5.18
- nios2 25
- openrisc 25
- parisc 202
- score 25, removed in 4.17
- sh 221
- sparc 155
- xtensa 61
Get this as JSON: https://api.syscall.sh/v2/syscalls/tilepro/fcntl64?kernel=all