syscall.sh / xtensa / fcntl64
fcntl64
manipulate file descriptor
sys_fcntl64(unsigned int fd, unsigned int cmd, unsigned long arg)
| number | 61 (0x3d) |
|---|---|
| abi | common |
| entry point | sys_fcntl64 |
| since | Linux 5.0 |
| man page | fcntl64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a2 | 61, 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
- x86 221
- arm 221
- ppc 204
- mipsn32 6212
- mipso32 4220
- arc 25
- csky 25
- hexagon 25
- m68k 239
- microblaze 221
- nios2 25
- openrisc 25
- parisc 202
- sh 221
- sparc 155
Get this as JSON: https://api.syscall.sh/v2/syscalls/xtensa/fcntl64