---
name: "nvme_init_get_log_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_get_log_lockdown-libnvme3"
---

# nvme\_init\_get\_log\_lockdown-libnvme3(2)

Initialize passthru command for Command and Feature Lockdown

## NAME

nvme\_init\_get\_log\_lockdown - Initialize passthru command for Command and Feature Lockdown

## SYNOPSIS

**void nvme\_init\_get\_log\_lockdown** **(struct libnvme\_passthru\_cmd \*cmd** *,* **\_\_u8 cnscp** *,* **\_\_u16 cntlid** *,* **struct nvme\_lockdown\_log \*lockdown\_log** *);*

## ARGUMENTS

- cmd

  Passthru command to use

- cnscp

  Contents and Scope of Command and Feature Identifier Lists, see *enum nvme\_lockdown\_log\_lsp*. Set the NVME\_LOCKDOWN\_LOG\_LSP\_ELPF bit to request the Controller-scoped Enhanced log page format instead of the original format.

- cntlid

  Controller Identifier: scopes the returned log page to the specified controller if the ELPF bit is set in *cnscp*. Ignored otherwise.

- lockdown\_log

  Buffer to store the lockdown log

## DESCRIPTION

Initializes the passthru command buffer for the Get Log command with LID value NVME\_LOG\_LID\_CMD\_AND\_FEAT\_LOCKDOWN
