syscall.sh / riscv64 / getuid
getuid
get user identity
sys_getuid(void)
| number | 174 (0xae) |
|---|---|
| abi | common |
| entry point | sys_getuid |
| since | Linux 4.15 |
| man page | getuid(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 174, the syscall number |
a0 | the return value |
Then run ecall to enter the kernel.
Same syscall on other architectures
- x64 102
- x86 24
- arm64 174
- arm 24
- x32 1073741926
- loongarch64 174
- ppc64 24
- ppc 24
- s390x 199
- mips64 5100
- mipsn32 6100
- mipso32 4024
- arc 174
- csky 174
- hexagon 174
- m68k 24
- microblaze 24
- nios2 174
- openrisc 174
- parisc 24
- sh 24
- sparc 24
- sparc64 24
- xtensa 137
Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/getuid