OS Manuals

libnvmf_read_key-libnvme3(2)

libnvmf_read_key - Read key raw data

libnvmf_read_key(9) libnvme API manual libnvmf_read_key(9)

libnvmf_read_key - Read key raw data

int libnvmf_read_key (struct libnvme_global_ctx *ctx , long keyring_id , long key_id , int *len , unsigned char **key );

struct libnvme_global_ctx object
Id of the keyring holding key_id
Key id
Length of key to return
Raw key data to return

Links the keyring specified by keyring_id into the session keyring and reads the payload of the key specified by key_id. len holds the size of the returned buffer. If keyring_id is 0 the default keyring '.nvme' is used.

0 on success, negative error code otherwise.

libnvmf_read_key October 2026

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