set_mempolicy_home_node on x64
sys_set_mempolicy_home_node(unsigned long start, unsigned long len, unsigned long home_node, unsigned long flags)
| number | 450 (0x1c2) |
|---|---|
| abi | common |
| entry point | sys_set_mempolicy_home_node |
| since | Linux 5.17 |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 450, the syscall number |
rdi | unsigned long start |
rsi | unsigned long len |
rdx | unsigned long home_node |
r10 | unsigned long flags |
rax | the return value |
Then run syscall to enter the kernel.
The syscall instruction clobbers rcx (the return address lands in rcx) and r11 (the flags land in r11).
Since Linux 5.14 the kernel reads the syscall number from eax and ignores the upper 32 bits of rax. Older kernels fail with ENOSYS when those bits are not zero, and mov eax, N clears them, so it works on both.
Same syscall on other architectures
- x86 450
- arm64 450
- arm 450
- riscv64 450
- ia32 450
- x32 1073742274
- loongarch64 450
- ppc64 450
- ppc 450
- s390x 450
- mips64 5450
- mipsn32 6450
- mipso32 4450
- arc 450
- csky 450
- hexagon 450
- ia64 1474, removed in 6.7
- m68k 450
- microblaze 450
- nds32 450, removed in 5.18
- nios2 450
- openrisc 450
- parisc 450
- sh 450
- sparc 450
- sparc64 450
- xtensa 450
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/set_mempolicy_home_node