syscall.sh / riscv64 / unshare
unshare
disassociate parts of the process execution context
sys_unshare(unsigned long unshare_flags)
| number | 97 (0x61) |
|---|---|
| abi | common |
| entry point | sys_unshare |
| since | Linux 4.15 |
| man page | unshare(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 97, the syscall number |
a0 | unsigned long unshare_flags |
a0 | the return value |
Then run ecall to enter the kernel.
Same syscall on other architectures
- x64 272
- x86 310
- arm64 97
- arm 337
- x32 1073742096
- loongarch64 97
- ppc64 282
- ppc 282
- s390x 303
- mips64 5262
- mipsn32 6266
- mipso32 4303
- alpha 465
- arc 97
- csky 97
- hexagon 97
- m68k 303
- microblaze 310
- nios2 97
- openrisc 97
- parisc 288
- sh 310
- sparc 299
- sparc64 299
- xtensa 266
Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/unshare