name_to_handle_at on metag
obtain handle for a pathname and open file via a handle
sys_name_to_handle_at(int dfd, const char *name, struct file_handle *handle, int *mnt_id, int flag)
| number | 264 (0x108) |
|---|---|
| abi | common |
| kconfig | CONFIG_FHANDLE |
| entry point | sys_name_to_handle_at |
| since | Linux 3.9 or earlier (3.9 is the first release scanned for metag) |
| man page | name_to_handle_at(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 264, the syscall number |
D1Ar1 | int dfd |
D0Ar2 | const char *name |
D1Ar3 | struct file_handle *handle |
D0Ar4 | int *mnt_id |
D1Ar5 | int flag |
D0Re0 | the return value |
Then run SWITCH #0x440001 to enter the kernel.
Values wider than one register are packed into consecutive arguments.
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 303
- x86 341
- arm64 264
- arm 370
- riscv64 264
- ia32 341
- x32 1073742127
- loongarch64 264
- ppc64 345
- ppc 345
- s390x 335
- mips64 5298
- mipsn32 6303
- mipso32 4339
- alpha 497
- arc 264
- blackfin 375, removed in 4.17
- cris 336, removed in 4.17
- csky 264
- hexagon 264
- ia64 1326, removed in 6.7
- m68k 340
- microblaze 371
- nds32 264, removed in 5.18
- nios2 264
- openrisc 264
- parisc 325
- score 264, removed in 4.17
- sh 359
- sparc 332
- sparc64 332
- tilegx 264, removed in 4.17
- tilepro 264, removed in 4.17
- xtensa 324
Get this as JSON: https://api.syscall.sh/v2/syscalls/metag/name_to_handle_at?kernel=all