Debian Codegraph @

doc/man/nvme_sanitize_nvm.2

raw
1 .TH "nvme_sanitize_nvm" 9 "nvme_sanitize_nvm" "November 2025" "libnvme API manual" LINUX
2 .SH NAME
3 nvme_sanitize_nvm \- Start a sanitize operation
4 .SH SYNOPSIS
5 .B "int" nvme_sanitize_nvm
6 .BI "(struct nvme_sanitize_nvm_args *args " ");"
7 .SH ARGUMENTS
8 .IP "args" 12
9 \fIstruct nvme_sanitize_nvm_args\fP argument structure
10 .SH "DESCRIPTION"
11 A sanitize operation alters all user data in the NVM subsystem such that
12 recovery of any previous user data from any cache, the non-volatile media,
13 or any Controller Memory Buffer is not possible.
14
15 The Sanitize command starts a sanitize operation or to recover from a
16 previously failed sanitize operation. The sanitize operation types that may
17 be supported are Block Erase, Crypto Erase, and Overwrite. All sanitize
18 operations are processed in the background, i.e., completion of the sanitize
19 command does not indicate completion of the sanitize operation.
20 .SH "RETURN"
21 The nvme command status if a response was received (see
22 \fIenum nvme_status_field\fP) or -1 with errno set otherwise.