syscall.sh / riscv64 / uname
uname
get name and information about current kernel
sys_newuname(struct new_utsname *name)
| number | 160 (0xa0) |
|---|---|
| abi | common |
| entry point | sys_newuname |
| since | Linux 4.15 |
| man page | uname(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 160, the syscall number |
a0 | struct new_utsname *name |
a0 | the return value |
Then run ecall to enter the kernel.
Same syscall on other architectures
- x64 63
- x86 122
- arm64 160
- arm 122
- x32 1073741887
- loongarch64 160
- ppc64 122
- ppc 122
- s390x 122
- mips64 5061
- mipsn32 6061
- mipso32 4122
- alpha 339
- arc 160
- csky 160
- hexagon 160
- m68k 122
- microblaze 122
- nios2 160
- openrisc 160
- parisc 59
- sh 122
- sparc 189
- sparc64 189
- xtensa 208
Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/uname