nvme_sanitize_nvm(2)
π nvme_sanitize_nvm β it's giving "delete everything, no takebacks"
okay so bestie, we're in the libnvme API manual, section 2, and today's main character is nvme_sanitize_nvm(2). yes the function name and the page name are the same, that's just how section 2 rolls, iykyk β¨
β¨ NAME β¨
nvme_sanitize_nvm β Start a sanitize operation π§Όπ₯
π SYNOPSIS π
int nvme_sanitize_nvm (struct nvme_sanitize_nvm_args *args );
π ARGUMENTS π
argsβ astruct nvme_sanitize_nvm_argsargument structure. that's the whole vibe, she just takes the struct π«Ά
π DESCRIPTION π
so a sanitize operation literally alters all user data in the NVM subsystem, and the way it does it means recovery of any previous user data from any cache, the non-volatile media, or any Controller Memory Buffer is not possible. like. not possible possible. it's gone gone ππ
The Sanitize command starts a sanitize operation or recovers from a previously failed sanitize operation. the sanitize operation types that may be supported are Block Erase, Crypto Erase, and Overwrite. iconic trio tbh π
β οΈ lowkey important: all sanitize operations are processed in the background. so completion of the sanitize command does not indicate completion of the sanitize operation. not me finding this out the hard way π the command finishing is not the operation finishing, they're two different girls.
β RETURN β
it hands you back the nvme command status if a response was received (see enum nvme_status_field), or -1 with errno set otherwise. slay πΈ
and that's the whole page fr fr β written up for the libnvme API manual and dated July 2026, page nvme_sanitize_nvm(2) out π bye bestie, go sanitize responsibly π§β¨
π¦ 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