---
name: "nvme_init_resv_register-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/nvme_init_resv_register-libnvme3"
---

# nvme\_init\_resv\_register-libnvme3(2)

Initialize passthru command for Reservation Register

## NAME

nvme\_init\_resv\_register - Initialize passthru command for Reservation Register

## SYNOPSIS

**void nvme\_init\_resv\_register** **(struct libnvme\_passthru\_cmd \*cmd** *,* **\_\_u32 nsid** *,* **enum nvme\_resv\_rrega rrega** *,* **bool iekey** *,* **bool disnsrs** *,* **enum nvme\_resv\_cptpl cptpl** *,* **\_\_u64 crkey** *,* **\_\_u64 nrkey** *,* **\_\_le64 \*payload** *);*

## ARGUMENTS

- cmd

  Passthru command to use

- nsid

  Namespace identifier

- rrega

  The registration action, see *enum nvme\_resv\_rrega*

- iekey

  Set to ignore the existing key

- disnsrs

  Disperse Namespace Reservation Support

- cptpl

  Change persist through power loss, see *enum nvme\_resv\_cptpl*

- crkey

  The current reservation key associated with the host

- nrkey

  The new reservation key to be register if action is register or replace

- payload

  Data payload buffer to hold crkey and nrkey

## DESCRIPTION

Initializes the passthru command buffer for the Reservation Register command.
