---
name: "nvme_init_sanitize_nvm-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_nvm-libnvme3"
---

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

Initialize passthru command to start a sanitize operation

## NAME

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

## SYNOPSIS

**void nvme\_init\_sanitize\_nvm** **(struct libnvme\_passthru\_cmd \*cmd** *,* **enum nvme\_sanitize\_sanact sanact** *,* **bool ause** *,* **\_\_u8 owpass** *,* **bool oipbp** *,* **bool ndas** *,* **bool emvs** *,* **bool preq** *,* **\_\_u32 ovrpat** *);*

## ARGUMENTS

- cmd

  Passthru command to use

- sanact

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

- ause

  Set to allow unrestricted sanitize exit

- owpass

  Overwrite pass count

- oipbp

  Set to overwrite invert pattern between passes

- ndas

  Set to not deallocate blocks after sanitizing

- 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

- ovrpat

  Overwrite pattern

## DESCRIPTION

Initializes the passthru command buffer for the Sanitize NVM command.
