syscall.sh / xtensa / 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)
number256 (0x100)
abicommon
entry pointsys_add_key
sinceLinux 5.0
man pageadd_key(2)
sourceelixir.bootlin.com

Registers

registervalue
a2256, the syscall number
a6const char *_type
a3const char *_description
a4const void *_payload
a5size_t plen
a8key_serial_t destringid
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/xtensa/add_key