syscall.sh / riscv64 / setns

setns

reassociate thread with a namespace

sys_setns(int fd, int nstype)
number268 (0x10c)
abicommon
entry pointsys_setns
sinceLinux 4.15
man pagesetns(2)
sourceelixir.bootlin.com

Registers

registervalue
a7268, the syscall number
a0int fd
a1int nstype
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/setns