---
name: "nvme_init_get_log_device_self_test-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_device_self_test-libnvme3"
---

# nvme\_init\_get\_log\_device\_self\_test-libnvme3(2)

Initialize passthru command for Device Self-test

## NAME

nvme\_init\_get\_log\_device\_self\_test - Initialize passthru command for Device Self-test

## SYNOPSIS

**void nvme\_init\_get\_log\_device\_self\_test** **(struct libnvme\_passthru\_cmd \*cmd** *,* **struct nvme\_self\_test\_log \*log** *);*

## ARGUMENTS

- cmd

  Passthru command to use

- log

  Userspace address of the log payload

## DESCRIPTION

Initializes the passthru command buffer for the Get Log command with LID value NVME\_LOG\_LID\_DEVICE\_SELF\_TEST.
