mmap2 on m32r
map files or devices into memory
sys_mmap_pgoff(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long pgoff)
| number | 192 (0xc0) |
|---|---|
| abi | common |
| entry point | sys_mmap_pgoff |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for m32r) |
| man page | mmap2(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r7 | 192, the syscall number |
r0 | unsigned long addr |
r1 | unsigned long len |
r2 | unsigned long prot |
r3 | unsigned long flags |
r4 | unsigned long fd |
r5 | unsigned long pgoff |
r0 | the return value |
Then run trap #2 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
- x86 192
- arm 192
- ia32 192
- ppc 192
- mipso32 4210
- arc 222
- blackfin 192, removed in 4.17
- cris 192, removed in 4.17
- csky 222
- frv 192, removed in 4.17
- hexagon 222
- ia64 1172, removed in 6.7
- m68k 192
- metag 222, removed in 4.17
- microblaze 192
- mn10300 192, removed in 4.17
- nds32 222, removed in 5.18
- nios2 222
- openrisc 222
- parisc 89
- score 222, removed in 4.17
- sh 192
- sparc 56
- tilepro 222, removed in 4.17
- xtensa 80
Get this as JSON: https://api.syscall.sh/v2/syscalls/m32r/mmap2?kernel=all