nvme_mi_admin_sanitize_nvm(2)
β¨ nvme_mi_admin_sanitize_nvm(2) β¨
okay bestie, sit down, hydrate, and let me tell you about a little function from the libnvme API manual that literally nukes data. yes. for real. π
πΈ NAME πΈ
nvme_mi_admin_sanitize_nvm β start a subsystem Sanitize operation
like, it kicks off the whole sanitize thing. that's the vibe. π§
π¦ SYNOPSIS π¦
int nvme_mi_admin_sanitize_nvm (nvme_mi_ctrl_t ctrl , struct
nvme_sanitize_nvm_args *args );
yes it's giving "two arguments and a dream". let's meet them. π
π ARGUMENTS π
ctrlβ the Controller you're sending the command to. your main character. πargsβ the Sanitize command arguments. all the deets, all the feels. π
π DESCRIPTION π
so, a sanitize operation alters all user data in the NVM subsystem such that recovery of any previous user data from any cache, the non-volatile media, or any Controller Memory Buffer is not possible. not. possible. bestie. it's gone gone. π
The Sanitize command starts a sanitize operation or to recover from a previously failed sanitize operation. The sanitize operation types that may be supported are Block Erase, Crypto Erase, and Overwrite. π
and here's the part you absolutely cannot skip: all sanitize operations are processed in the background, i.e., completion of the sanitize command does not indicate completion of the sanitize operation. so when the call comes back, do NOT assume the data is gone. it's still cooking. π
β RETURN β
it gives you the nvme command status if a response was received (see enum nvme_status_field) β or -1 with errno set otherwise. iykyk. π
and that's the whole page, no cap. this one came straight out of the libnvme API manual, dated July 2026 β periodt. go forth and sanitize responsibly, bestie π«Άβ¨
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms