syscall.sh / mipso32 / setxattr
setxattr
set an extended attribute value
sys_setxattr(const char *path, const char *name, const void *value, size_t size, int flags)
| number | 4224 (0x1080) |
|---|---|
| abi | o32 |
| entry point | sys_setxattr |
| since | Linux 5.0 |
| man page | setxattr(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 4224, the syscall number |
a0 | const char *path |
a1 | const char *name |
a2 | const void *value |
a3 | size_t size |
sp+16 | int flags |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 188
- x86 226
- arm64 5
- arm 226
- riscv64 5
- x32 1073742012
- loongarch64 5
- ppc64 209
- ppc 209
- s390x 224
- mips64 5180
- mipsn32 6180
- alpha 382
- arc 5
- csky 5
- hexagon 5
- m68k 223
- microblaze 226
- nios2 5
- openrisc 5
- parisc 238
- sh 226
- sparc 169
- sparc64 169
- xtensa 68
Get this as JSON: https://api.syscall.sh/v2/syscalls/mipso32/setxattr