File: nvme_read_key.2

package info (click to toggle)
libnvme 1.13-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 7,336 kB
  • sloc: ansic: 30,501; perl: 1,834; sh: 436; python: 190; cpp: 64; makefile: 54
file content (23 lines) | stat: -rw-r--r-- 717 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.TH "nvme_read_key" 9 "nvme_read_key" "April 2025" "libnvme API manual" LINUX
.SH NAME
nvme_read_key \- Read key raw data
.SH SYNOPSIS
.B "unsigned char *" nvme_read_key
.BI "(long keyring_id "  ","
.BI "long key_id "  ","
.BI "int *len "  ");"
.SH ARGUMENTS
.IP "keyring_id" 12
Id of the keyring holding key_id
.IP "key_id" 12
Key id
.IP "len" 12
Length of the returned data
.SH "DESCRIPTION"
Links the keyring specified by \fIkeyring_id\fP into the session
keyring and reads the payload of the key specified by \fIkey_id\fP.
\fIlen\fP holds the size of the returned buffer.
If \fIkeyring\fP is 0 the default keyring '.nvme' is used.
.SH "RETURN"
Pointer to the payload on success,
or NULL with errno set otherwise.