summaryrefslogtreecommitdiffstats
path: root/doc/man/nvme_lookup_key.2
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/nvme_lookup_key.2')
-rw-r--r--doc/man/nvme_lookup_key.218
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/man/nvme_lookup_key.2 b/doc/man/nvme_lookup_key.2
new file mode 100644
index 0000000..cb8a9ac
--- /dev/null
+++ b/doc/man/nvme_lookup_key.2
@@ -0,0 +1,18 @@
+.TH "nvme_lookup_key" 9 "nvme_lookup_key" "March 2023" "libnvme API manual" LINUX
+.SH NAME
+nvme_lookup_key \- Lookup key serial number
+.SH SYNOPSIS
+.B "long" nvme_lookup_key
+.BI "(const char *type " ","
+.BI "const char *identity " ");"
+.SH ARGUMENTS
+.IP "type" 12
+Key type
+.IP "identity" 12
+Key description
+.SH "DESCRIPTION"
+Looks up the serial number of the key \fIidentity\fP
+with type type in the current session keyring.
+.SH "RETURN"
+The key serial number of the key
+or 0 with errno set otherwise.