syscall.sh / riscv64 / lgetxattr
lgetxattr
retrieve an extended attribute value
sys_lgetxattr(const char *path, const char *name, void *value, size_t size)
| number | 9 (0x9) |
|---|---|
| abi | common |
| entry point | sys_lgetxattr |
| since | Linux 4.15 |
| man page | lgetxattr(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 9, the syscall number |
a0 | const char *path |
a1 | const char *name |
a2 | void *value |
a3 | size_t size |
a0 | the return value |
Then run ecall to enter the kernel.
Same syscall on other architectures
- x64 192
- x86 230
- arm64 9
- arm 230
- x32 1073742016
- loongarch64 9
- ppc64 213
- ppc 213
- s390x 228
- mips64 5184
- mipsn32 6184
- mipso32 4228
- alpha 386
- arc 9
- csky 9
- hexagon 9
- m68k 227
- microblaze 230
- nios2 9
- openrisc 9
- parisc 242
- sh 230
- sparc 173
- sparc64 173
- xtensa 73
Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/lgetxattr