---
name: "nvme_init_lockdown-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_lockdown-libnvme3"
---

# nvme\_init\_lockdown-libnvme3(2)

Initialize passthru command for Lockdown

## NAME

nvme\_init\_lockdown - Initialize passthru command for Lockdown

## SYNOPSIS

**void nvme\_init\_lockdown** **(struct libnvme\_passthru\_cmd \*cmd** *,* **\_\_u8 scp** *,* **\_\_u8 prhbt** *,* **\_\_u8 ifc** *,* **\_\_u8 ofi** *,* **\_\_u8 uidx** *,* **\_\_u8 csel** *,* **\_\_u16 css** *);*

## ARGUMENTS

- cmd

  Passthru command to use

- scp

  Scope of the command

- prhbt

  Prohibit or allow the command opcode or Set Features command

- ifc

  Affected interface

- ofi

  Opcode or Feature Identifier

- uidx

  UUID Index if controller supports this id selection method

- csel

  Controller Select (CSEL): specifies the controller(s) affected by this command, see *enum nvme\_lockdown\_csel*

- css

  Controller Select Specific (CSS): meaning is specific to *csel* (a Controller Identifier, a Primary Controller Identifier, or vendor specific). Ignored if *csel* is NVME\_LOCKDOWN\_CSEL\_NVM\_SUBSYSTEM.

## DESCRIPTION

Initializes the passthru command buffer for the Lockdown command.
