Debian Codegraph @

doc/man/nvme_read_key.2

raw
1 .TH "nvme_read_key" 9 "nvme_read_key" "November 2025" "libnvme API manual" LINUX
2 .SH NAME
3 nvme_read_key \- Read key raw data
4 .SH SYNOPSIS
5 .B "unsigned char *" nvme_read_key
6 .BI "(long keyring_id " ","
7 .BI "long key_id " ","
8 .BI "int *len " ");"
9 .SH ARGUMENTS
10 .IP "keyring_id" 12
11 Id of the keyring holding key_id
12 .IP "key_id" 12
13 Key id
14 .IP "len" 12
15 Length of the returned data
16 .SH "DESCRIPTION"
17 Links the keyring specified by \fIkeyring_id\fP into the session
18 keyring and reads the payload of the key specified by \fIkey_id\fP.
19 \fIlen\fP holds the size of the returned buffer.
20 If \fIkeyring\fP is 0 the default keyring '.nvme' is used.
21 .SH "RETURN"
22 Pointer to the payload on success,
23 or NULL with errno set otherwise.