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