nvme_get_log_sanitize(2)
π nvme_get_log_sanitize β it's a libnvme API manual bestie, section 2, and it's giving "Retrieve Sanitize Status" β¨
okay so picture this: you're deep in libnvme land, section 2 of the manual, and you need the tea on what your NVMe drive has been up to with sanitize operations. That's literally this whole page. Let's go. π«Ά
πΈ NAME πΈ
nvme_get_log_sanitize β Retrieve Sanitize Status π
β¨ SYNOPSIS β¨
int nvme_get_log_sanitize (int fd , bool rae , struct
nvme_sanitize_log_page *log );
no cap, that's the whole signature. three little args and a dream. π
π ARGUMENTS π
fdβ File descriptor of nvme device. it's your lil backstage pass to the drive, iykyk πraeβ Retain asynchronous events. yes boo, keep those events, don't let 'em ghost you πlogβ User address to store the sanitize log. this is where the gossip gets written down fr fr π
π¦ DESCRIPTION π¦
The Sanitize Status log page reports sanitize operation time estimates and information about the most recent sanitize operation.
so basically: how long is this sanitize thing gonna take, and what happened last time. the receipts, the timeline, the whole vibe check on your most recent sanitize operation. iconic behavior from a log page honestly. β
π RETURN π
The nvme command status if a response was received (see enum nvme_status_field) or -1 with errno set otherwise.
so like β if the drive answered you, you get the nvme command status back (go peek atenum nvme_status_fieldfor the deets). if it did NOT answer, you get-1anderrnogets set. that's your "it's not me, it's the errno" moment π
π SEE ALSO π
(ngl this page doesn't list any SEE ALSO refs, so we're just gonna vibe here together. go look at enum nvme_status_field if you're nosy though. π)
and that's the page bestie!! written up in July 2026, under the name nvme_get_log_sanitize, living in the <cyan>nvme_get_log_sanitize(2)</cyan> section of the libnvme API manual. mwah, go sanitize something safely, ily, byeeee π§πβ¨
π¦ 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