nvme_init_sanitize_nvm(9) libnvme API manual nvme_init_sanitize_nvm(9)

nvme_init_sanitize_nvm - Initialize passthru command to start a sanitize operation

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 );

Passthru command to use
Sanitize action, see enum nvme_sanitize_sanact
Set to allow unrestricted sanitize exit
Overwrite pass count
Set to overwrite invert pattern between passes
Set to not deallocate blocks after sanitizing
Set to enter media verification state
Set to require the sanitize operation to purge user data, as defined by IEEE Std 2883, or fail
Overwrite pattern

Initializes the passthru command buffer for the Sanitize NVM command.

nvme_init_sanitize_nvm October 2026