---
name: "nvme_init_dev_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_dev_self_test-libnvme3"
---

# nvme\_init\_dev\_self\_test-libnvme3(2)

Initialize passthru command to start or abort a self test

## NAME

nvme\_init\_dev\_self\_test - Initialize passthru command to start or abort a self test

## SYNOPSIS

**void nvme\_init\_dev\_self\_test** **(struct libnvme\_passthru\_cmd \*cmd** *,* **\_\_u32 nsid** *,* **enum nvme\_dst\_stc stc** *);*

## ARGUMENTS

- cmd

  Passthru command to use

- nsid

  Namespace ID to test

- stc

  Self test code, see *enum nvme\_dst\_stc*

## DESCRIPTION

Initializes the passthru command buffer for the Device Self-test command.
