mount on nds32

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.17 or earlier (4.17 is the first release scanned for nds32)
man pagemount(2)
sourceelixir.bootlin.com

Registers

registervalue
r1540, the syscall number
r0char *dev_name
r1char *dir_name
r2char *type
r3unsigned long flags
r4void *data
r0the return value

Then run syscall to enter the kernel.

This architecture was removed from the Linux kernel in Linux 5.18. The newest release with a syscall table here is Linux 5.17. The other removed architectures live on the historical architectures page.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/nds32/mount?kernel=all