mount on score
mount filesystem
sys_mount(char *dev_name, char *dir_name, char *type, unsigned long flags, void *data)
| number | 40 (0x28) |
|---|---|
| abi | common |
| entry point | sys_mount |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | mount(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 40, the syscall number |
r4 | char *dev_name |
r5 | char *dir_name |
r6 | char *type |
r7 | unsigned long flags |
r8 | void *data |
r4 | the return value |
Then run syscall to enter the kernel.
r7 is the error flag and r4 then holds the positive error number.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 165
- x86 21
- arm64 40
- arm 21
- riscv64 40
- ia32 21
- x32 1073741989
- loongarch64 40
- ppc64 21
- ppc 21
- s390x 21
- mips64 5160
- mipsn32 6160
- mipso32 4021
- alpha 302
- arc 40
- blackfin 21, removed in 4.17
- cris 21, removed in 4.17
- csky 40
- frv 21, removed in 4.17
- hexagon 40
- ia64 1043, removed in 6.7
- m32r 21, removed in 4.17
- m68k 21
- metag 40, removed in 4.17
- microblaze 21
- mn10300 21, removed in 4.17
- nds32 40, removed in 5.18
- nios2 40
- openrisc 40
- parisc 21
- sh 21
- sparc 167
- sparc64 167
- tilegx 40, removed in 4.17
- tilepro 40, removed in 4.17
- xtensa 172
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/mount?kernel=all