syscall.sh / parisc / set_mempolicy
set_mempolicy
set default NUMA memory policy for a thread and its children
sys_set_mempolicy(int mode, const unsigned long *nmask, unsigned long maxnode)
| number | 262 (0x106) |
|---|---|
| abi | common |
| entry point | sys_set_mempolicy |
| since | Linux 5.0 |
| man page | set_mempolicy(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r20 | 262, the syscall number |
r26 | int mode |
r25 | const unsigned long *nmask |
r24 | unsigned long maxnode |
r28 | the return value |
Then run ble 0x100(%sr2, %r0) to enter the kernel.
Same syscall on other architectures
- x64 238
- x86 276
- arm64 237
- arm 321
- riscv64 237
- x32 1073742062
- loongarch64 237
- ppc64 261
- ppc 261
- s390x 270
- mips64 5229
- mipsn32 6233
- mipso32 4270
- arc 237
- csky 237
- hexagon 237
- m68k 270
- microblaze 276
- nios2 237
- openrisc 237
- sh 276
- sparc 305
- sparc64 305
- xtensa 265
Get this as JSON: https://api.syscall.sh/v2/syscalls/parisc/set_mempolicy