move_mount on x64
move or attach mount object to filesystem
sys_move_mount(int from_dfd, const char *from_path, int to_dfd, const char *to_path, unsigned int ms_flags)
| number | 429 (0x1ad) |
|---|---|
| abi | common |
| entry point | sys_move_mount |
| since | Linux 5.2 |
| man page | move_mount(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 429, the syscall number |
rdi | int from_dfd |
rsi | const char *from_path |
rdx | int to_dfd |
r10 | const char *to_path |
r8 | unsigned int ms_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 429
- arm64 429
- arm 429
- riscv64 429
- ia32 429
- x32 1073742253
- loongarch64 429
- ppc64 429
- ppc 429
- s390x 429
- mips64 5429
- mipsn32 6429
- mipso32 4429
- alpha 539
- arc 429
- csky 429
- hexagon 429
- ia64 1453, removed in 6.7
- m68k 429
- microblaze 429
- nds32 429, removed in 5.18
- nios2 429
- openrisc 429
- parisc 429
- sh 429
- sparc 429
- sparc64 429
- xtensa 429
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/move_mount