---
name: "nvme_lookup_key"
section: "2"
platform: "linux"
package: "libnvme-dev"
version: "1.13-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nvme_lookup_key"
---

# nvme\_lookup\_key(2)

Lookup key serial number

## NAME

nvme\_lookup\_key - Lookup key serial number

## SYNOPSIS

**long nvme\_lookup\_key** **(const char \*type** *,* **const char \*identity** *);*

## ARGUMENTS

- type

  Key type

- identity

  Key description

## DESCRIPTION

Looks up the serial number of the key *identity* with type type in the current session keyring.

## RETURN

The key serial number of the key or 0 with errno set otherwise.
