setxattrat on x64
sys_setxattrat(int dfd, const char *path, unsigned int at_flags, const char *name, const struct xattr_args *args, size_t size)
| number | 463 (0x1cf) |
|---|---|
| abi | common |
| entry point | sys_setxattrat |
| since | Linux 6.13 |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 463, the syscall number |
rdi | int dfd |
rsi | const char *path |
rdx | unsigned int at_flags |
r10 | const char *name |
r8 | const struct xattr_args *args |
r9 | size_t size |
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 463
- arm64 463
- arm 463
- riscv64 463
- ia32 463
- x32 1073742287
- loongarch64 463
- ppc64 463
- ppc 463
- s390x 463
- mips64 5463
- mipsn32 6463
- mipso32 4463
- alpha 573
- arc 463
- csky 463
- hexagon 463
- m68k 463
- microblaze 463
- nios2 463
- openrisc 463
- parisc 463
- sh 463
- sparc 463
- sparc64 463
- xtensa 463
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/setxattrat