nvme_init_sanitize_ns(9) libnvme API manual nvme_init_sanitize_ns(9)

nvme_init_sanitize_ns - Initialize passthru command to start a sanitize namespace operation

void nvme_init_sanitize_ns (struct libnvme_passthru_cmd *cmd , enum nvme_sanitize_sanact sanact , bool ause , bool emvs , bool preq );

Passthru command to use
Sanitize action, see enum nvme_sanitize_sanact
Set to allow unrestricted sanitize exit
Set to enter media verification state
Set to require the sanitize operation to purge user data, as defined by IEEE Std 2883, or fail

Initializes the passthru command buffer for the Sanitize namespace command.

nvme_init_sanitize_ns October 2026