add_key on nds32

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)
number217 (0xd9)
abicommon
kconfigCONFIG_KEYS
familykeys see the whole family on nds32
entry pointsys_add_key
sinceLinux 4.17 or earlier (4.17 is the first release scanned for nds32)
man pageadd_key(2)
sourceelixir.bootlin.com

Registers

registervalue
r15217, the syscall number
r0const char *_type
r1const char *_description
r2const void *_payload
r3size_t plen
r4key_serial_t destringid
r0the return value

Then run syscall to enter the kernel.

This architecture was removed from the Linux kernel in Linux 5.18. The newest release with a syscall table here is Linux 5.17. The other removed architectures live on the historical architectures page.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/nds32/add_key?kernel=all