listxattrat on x64
sys_listxattrat(int dfd, const char *path, unsigned int at_flags, char *list, size_t size)
| number | 465 (0x1d1) |
|---|---|
| abi | common |
| entry point | sys_listxattrat |
| since | Linux 6.13 |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 465, the syscall number |
rdi | int dfd |
rsi | const char *path |
rdx | unsigned int at_flags |
r10 | char *list |
r8 | 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 465
- arm64 465
- arm 465
- riscv64 465
- ia32 465
- x32 1073742289
- loongarch64 465
- ppc64 465
- ppc 465
- s390x 465
- mips64 5465
- mipsn32 6465
- mipso32 4465
- alpha 575
- arc 465
- csky 465
- hexagon 465
- m68k 465
- microblaze 465
- nios2 465
- openrisc 465
- parisc 465
- sh 465
- sparc 465
- sparc64 465
- xtensa 465
Get this as JSON: https://api.syscall.sh/v2/syscalls/x64/listxattrat