prctl on mn10300
operations on a process or thread
sys_prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)
| number | 172 (0xac) |
|---|---|
| abi | common |
| entry point | sys_prctl |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for mn10300) |
| man page | prctl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
d0 | 172, the syscall number |
a0 | int option |
d1 | unsigned long arg2 |
a3 | unsigned long arg3 |
a2 | unsigned long arg4 |
d3 | unsigned long arg5 |
d0 | the return value |
Then run syscall 0 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
- x64 157
- x86 172
- arm64 167
- arm 172
- riscv64 167
- ia32 172
- x32 1073741981
- loongarch64 167
- ppc64 171
- ppc 171
- s390x 172
- mips64 5153
- mipsn32 6153
- mipso32 4192
- alpha 348
- arc 167
- blackfin 172, removed in 4.17
- cris 172, removed in 4.17
- csky 167
- frv 172, removed in 4.17
- hexagon 167
- ia64 1170, removed in 6.7
- m32r 172, removed in 4.17
- m68k 172
- metag 167, removed in 4.17
- microblaze 172
- nds32 167, removed in 5.18
- nios2 167
- openrisc 167
- parisc 172
- score 167, removed in 4.17
- sh 172
- sparc 147
- sparc64 147
- tilegx 167, removed in 4.17
- tilepro 167, removed in 4.17
- xtensa 130
Get this as JSON: https://api.syscall.sh/v2/syscalls/mn10300/prctl?kernel=all