add_key on ia32
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 | 286 (0x11e) |
|---|---|
| abi | i386 |
| kconfig | CONFIG_KEYS |
| family | keys |
| entry point | sys_add_key |
| since | Linux 3.3 or earlier (3.3 is the first release scanned for ia32) |
| man page | add_key(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 286, the syscall number |
ebx | const char *_type |
ecx | const char *_description |
edx | const void *_payload |
esi | size_t plen |
edi | key_serial_t destringid |
eax | the return value |
Then run int 0x80 to enter the kernel.
This compat ABI is only available when the kernel is built with CONFIG_IA32_EMULATION.
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
- sparc 281
- sparc64 281
- xtensa 256
Get this as JSON: https://api.syscall.sh/v2/syscalls/ia32/add_key