delete_module on riscv64

unload a kernel module

sys_delete_module(const char *name_user, unsigned int flags)
number106 (0x6a)
abicommon
entry pointsys_delete_module
sinceLinux 4.15 or earlier (4.15 is the first release scanned for riscv64)
man pagedelete_module(2)
sourceelixir.bootlin.com

Registers

registervalue
a7106, the syscall number
a0const char *name_user
a1unsigned int flags
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/delete_module