OS Manuals

libnvmf_update_key-libnvme3(2)

libnvmf_update_key - Update key raw data

libnvmf_update_key(9) libnvme API manual libnvmf_update_key(9)

libnvmf_update_key - Update key raw data

int libnvmf_update_key (struct libnvme_global_ctx *ctx , long keyring_id , const char *key_type , const char *identity , unsigned char *key_data , int key_len , long *key );

struct libnvme_global_ctx object
Id of the keyring holding key_id
Type of the key to insert
Key identity string
Raw data of the key
Length of key_data
Key serial to return

Links the keyring specified by keyring_id into the session keyring and updates the key reference by identity with key_data. The old key with identity identity will be revoked to make it inaccessible.

0 on success, negative error code otherwise.

libnvmf_update_key October 2026

nvme-cli 3.2-r0 · os · ingested 2026-10-31