removexattrat on x64
sys_removexattrat(int dfd, const char *path, unsigned int at_flags, const char *name)
| number | 466 (0x1d2) |
|---|---|
| abi | common |
| entry point | sys_removexattrat |
| since | Linux 6.13 |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 466, the syscall number |
rdi | int dfd |
rsi | const char *path |
rdx | unsigned int at_flags |
r10 | const char *name |
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 466
- arm64 466
- arm 466
- riscv64 466
- ia32 466
- x32 1073742290
- loongarch64 466
- ppc64 466
- ppc 466
- s390x 466
- mips64 5466
- mipsn32 6466
- mipso32 4466
- alpha 576
- arc 466
- csky 466
- hexagon 466
- m68k 466
- microblaze 466
- nios2 466
- openrisc 466
- parisc 466
- sh 466
- sparc 466
- sparc64 466
- xtensa 466
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/removexattrat