syscall.sh / sparc / add_key
add_key
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 | 281 (0x119) |
|---|---|
| abi | common |
| entry point | sys_add_key |
| since | Linux 5.0 |
| man page | add_key(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
g1 | 281, the syscall number |
o0 | const char *_type |
o1 | const char *_description |
o2 | const void *_payload |
o3 | size_t plen |
o4 | key_serial_t destringid |
o0 | the return value |
Then run t 0x10 to enter the kernel.
Same syscall on other architectures
- x64 248
- x86 286
- arm64 217
- arm 309
- riscv64 217
- x32 1073742072
- loongarch64 217
- ppc64 269
- ppc 269
- s390x 278
- mips64 5239
- mipsn32 6243
- mipso32 4280
- alpha 439
- arc 217
- csky 217
- hexagon 217
- m68k 279
- microblaze 286
- nios2 217
- openrisc 217
- parisc 264
- sh 285
- sparc64 281
- xtensa 256
Get this as JSON: https://api.syscall.sh/v2/syscalls/sparc/add_key