add_key on tilepro
add a key to the kernel's key management facility
sys_add_key(const char *_type, const char *_description, const void *_payload, size_t plen, key_serial_t destringid)
| number | 217 (0xd9) |
|---|---|
| abi | common |
| kconfig | CONFIG_KEYS |
| family | keys see the whole family on tilepro |
| entry point | sys_add_key |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for tilepro) |
| man page | add_key(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r10 | 217, the syscall number |
r0 | const char *_type |
r1 | const char *_description |
r2 | const void *_payload |
r3 | size_t plen |
r4 | key_serial_t destringid |
r0 | the return value |
Then run swint1 to enter the kernel.
The kernel uses r1 to signal an error for ordinary calls.
Fast atomic calls use negative numbers and have different register behavior.
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 248
- x86 286
- arm64 217
- arm 309
- riscv64 217
- ia32 286
- x32 1073742072
- loongarch64 217
- ppc64 269
- ppc 269
- s390x 278
- mips64 5239
- mipsn32 6243
- mipso32 4280
- alpha 439
- arc 217
- blackfin 286, removed in 4.17
- cris 286, removed in 4.17
- csky 217
- frv 286, removed in 4.17
- hexagon 217
- ia64 1271, removed in 6.7
- m32r 286, removed in 4.17
- m68k 279
- metag 217, removed in 4.17
- microblaze 286
- mn10300 286, removed in 4.17
- nds32 217, removed in 5.18
- nios2 217
- openrisc 217
- parisc 264
- score 217, removed in 4.17
- sh 285
- sparc 281
- sparc64 281
- tilegx 217, removed in 4.17
- xtensa 256
Get this as JSON: https://api.syscall.sh/v2/syscalls/tilepro/add_key?kernel=all