Creates and initializes a kernel keyset.
#include <sys/kerrno.h>
#include <sys/skeys.h>
kerrno_t kkeyset_create (set)
kkeyset_t *set;
| Item | Description |
|---|---|
| set | Contains the returned newly-created keyset. |
The kkeyset_create kernel service creates a new (empty) kernel keyset. You can add or remove the access to an individual or groups of kernel keys using the kkeyset_add_key, kkeyset_remove_key, kkeyset_add_set, and kkeyset_remove_set kernel services.
The kkeyset_create kernel service can be called from the process environment only.
| Item | Description |
|---|---|
| 0 | Indicates a successful completion. |
| ENOMEM_KKEYSET_CREATE | Indicates that the available memory is not sufficient to satisfy the request. |
| EINVAL_KKEYSET_CREATE | Indicates that the parameter or execution environment is not valid. |