.TH "libnvmf_update_key" 9 "libnvmf_update_key" "October 2026" "libnvme API manual" LINUX .SH NAME libnvmf_update_key \- Update key raw data .SH SYNOPSIS .B "int" libnvmf_update_key .BI "(struct libnvme_global_ctx *ctx " "," .BI "long keyring_id " "," .BI "const char *key_type " "," .BI "const char *identity " "," .BI "unsigned char *key_data " "," .BI "int key_len " "," .BI "long *key " ");" .SH ARGUMENTS .IP "ctx" 12 struct libnvme_global_ctx object .IP "keyring_id" 12 Id of the keyring holding \fIkey_id\fP .IP "key_type" 12 Type of the key to insert .IP "identity" 12 Key identity string .IP "key_data" 12 Raw data of the key .IP "key_len" 12 Length of \fIkey_data\fP .IP "key" 12 Key serial to return .SH "DESCRIPTION" Links the keyring specified by \fIkeyring_id\fP into the session keyring and updates the key reference by \fIidentity\fP with \fIkey_data\fP. The old key with identity \fIidentity\fP will be revoked to make it inaccessible. .SH "RETURN" 0 on success, negative error code otherwise.