syscall.sh / parisc / get_mempolicy
get_mempolicy
retrieve NUMA memory policy for a thread
sys_get_mempolicy(int *policy, unsigned long *nmask, unsigned long maxnode, unsigned long addr, unsigned long flags)
| number | 261 (0x105) |
|---|---|
| abi | common |
| entry point | sys_get_mempolicy |
| since | Linux 5.0 |
| man page | get_mempolicy(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r20 | 261, the syscall number |
r26 | int *policy |
r25 | unsigned long *nmask |
r24 | unsigned long maxnode |
r23 | unsigned long addr |
r22 | unsigned long flags |
r28 | the return value |
Then run ble 0x100(%sr2, %r0) to enter the kernel.
Same syscall on other architectures
- x64 239
- x86 275
- arm64 236
- arm 320
- riscv64 236
- x32 1073742063
- loongarch64 236
- ppc64 260
- ppc 260
- s390x 269
- mips64 5228
- mipsn32 6232
- mipso32 4269
- arc 236
- csky 236
- hexagon 236
- m68k 269
- microblaze 275
- nios2 236
- openrisc 236
- sh 275
- sparc 304
- sparc64 304
- xtensa 264
Get this as JSON: https://api.syscall.sh/v2/syscalls/parisc/get_mempolicy