syscall.sh / riscv64 / mount

mount

mount filesystem

sys_mount(char *dev_name, char *dir_name, char *type, unsigned long flags, void *data)
number40 (0x28)
abicommon
entry pointsys_mount
sinceLinux 4.15
man pagemount(2)
sourceelixir.bootlin.com

Registers

registervalue
a740, the syscall number
a0char *dev_name
a1char *dir_name
a2char *type
a3unsigned long flags
a4void *data
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/mount