---
name: "nvme_init_sanitize_ns-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_sanitize_ns-libnvme3"
---

# nvme\_init\_sanitize\_ns-libnvme3(2)

Initialize passthru command to start a sanitize namespace operation

## NAME

nvme\_init\_sanitize\_ns - Initialize passthru command to start a sanitize namespace operation

## SYNOPSIS

**void nvme\_init\_sanitize\_ns** **(struct libnvme\_passthru\_cmd \*cmd** *,* **enum nvme\_sanitize\_sanact sanact** *,* **bool ause** *,* **bool emvs** *,* **bool preq** *);*

## ARGUMENTS

- cmd

  Passthru command to use

- sanact

  Sanitize action, see *enum nvme\_sanitize\_sanact*

- ause

  Set to allow unrestricted sanitize exit

- emvs

  Set to enter media verification state

- preq

  Set to require the sanitize operation to purge user data, as defined by IEEE Std 2883, or fail

## DESCRIPTION

Initializes the passthru command buffer for the Sanitize namespace command.
