libnvmf_update_key(9)
π libnvmf_update_key(9) β like, the libnvme API manual, bestie β¨
okay so real talk, we're in the libnvme API manual and today's main character is libnvmf_update_key(9). yes it's a section 9 page. yes it's about keys. yes we're gonna get through it together π«Ά
β¨ NAME β¨
libnvmf_update_key β update key raw data π
πΈ SYNOPSIS πΈ
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 );
like, that's the whole signature, no cap. six args and a return type, she's thicc but she's iconic π
π ARGUMENTS π
ctxβ astruct libnvme_global_ctxobject, aka the whole vibe/context you're operating in β¨keyring_idβ the id of the keyring that's holdingkey_idπkey_typeβ what type of key you're inserting, iykykidentityβ the key identity string, like her name tag at the function πkey_dataβ the raw data of the key, fr fr the actual byteskey_lenβ the length ofkey_data(yes bestie, sizes matter)keyβ the key serial to return, so you get something back π
π¦ DESCRIPTION π¦
so what does she actually do. okay. She links the keyring specified by keyring_id into the session keyring, and then she updates the key reference by identity with key_data. simple. slay.
and the drama? the old key with identity identity will be revoked to make it inaccessible π like she's not just replacing it, she's cutting it off, making it unreachable, gone-girl-ing it. so don't come crying if the old one stops working β that's literally the point, periodt.
π₯ RETURN π₯
0on success π- negative error code otherwise π
π SEE ALSO π
not me checking... nope, no SEE ALSO section in this one, bestie. she's a standalone queen π (well, aside from being part of the libnvme API manual, obviously β¨)
πΈ little reminder: negative error code means it did not work, so please actually check the return value. no silent failures in this group chat π
and that's the whole page!! sign-off time: this was libnvmf_update_key from the libnvme API manual, dated October 2026, and the source/version is libnvmf_update_key β ok bye love u, go update some keys responsibly π§ππ
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms