mmap on tilegx
map or unmap files or devices into memory
sys_mmap(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, off_t offset)
| number | 222 (0xde) |
|---|---|
| abi | common |
| entry point | sys_mmap |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for tilegx) |
| man page | mmap(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r10 | 222, the syscall number |
r0 | unsigned long addr |
r1 | unsigned long len |
r2 | unsigned long prot |
r3 | unsigned long flags |
r4 | unsigned long fd |
r5 | off_t offset |
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 9
- x86 90
- arm64 222
- riscv64 222
- ia32 90
- x32 1073741833
- loongarch64 222
- ppc64 90
- ppc 90
- s390x 90
- mips64 5009
- mipsn32 6009
- mipso32 4090
- alpha 71
- cris 90, removed in 4.17
- ia64 1151, removed in 6.7
- m68k 90
- microblaze 90
- mn10300 90, removed in 4.17
- parisc 90
- score 1058, removed in 4.17
- sh 90
- sparc 71
- sparc64 71
Get this as JSON: https://api.syscall.sh/v2/syscalls/tilegx/mmap?kernel=all