add_key on tilegx

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 tilegx
entry pointsys_add_key
sinceLinux 3.7 or earlier (3.7 is the first release scanned for tilegx)
man pageadd_key(2)
sourceelixir.bootlin.com

Registers

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

Then run swint1 to enter the kernel.

The kernel uses r1 to signal an error.

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

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