kkeyset_add_key Kernel Service
Purpose
Adds a kernel key to a kernel keyset.
Syntax
Parameters
Item | Description |
---|---|
set | Specifies the kernel keyset to which the kkeyset_add_key kernel service will add a key. |
key | Specifies the kernel key to add. |
flags | You can
specify the flags parameter
to one of the following values:
|
Description
The kkeyset_add_key kernel service adds a single kernel key specified by the key parameter to the kernel keyset specified by the set parameter. You must specify the flags parameter to control the read or write authority.
Execution Environment
The kkeyset_add_key kernel service can be called from the process environment only.
Return Values
Item | Description |
---|---|
0 | Indicates a successful completion. |
EINVAL_KKEYSET_ADD_KEY | Indicates that the parameter or execution environment is not valid. |