nvme_init_resv_register(9) libnvme API manual nvme_init_resv_register(9)

nvme_init_resv_register - Initialize passthru command for Reservation Register

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 );

Passthru command to use
Namespace identifier
The registration action, see enum nvme_resv_rrega
Set to ignore the existing key
Disperse Namespace Reservation Support
Change persist through power loss, see enum nvme_resv_cptpl
The current reservation key associated with the host
The new reservation key to be register if action is register or replace
Data payload buffer to hold crkey and nrkey

Initializes the passthru command buffer for the Reservation Register command.

nvme_init_resv_register October 2026