---
name: "libnvmf_set_keyring-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libnvmf_set_keyring-libnvme3"
---

# libnvmf\_set\_keyring-libnvme3(2)

Link keyring for lookup

## NAME

libnvmf\_set\_keyring - Link keyring for lookup

## SYNOPSIS

**int libnvmf\_set\_keyring** **(struct libnvme\_global\_ctx \*ctx** *,* **long keyring\_id** *);*

## ARGUMENTS

- ctx

  struct libnvme\_global\_ctx object

- keyring\_id

  Keyring id

## DESCRIPTION

Links *keyring\_id* into the session keyring such that its keys are available for further key lookups.

## RETURN

0 on success, negative error code otherwise.
