LIBNVME_MI_MI_PDA_WRITE_ZEROES-LIBNVME3(2)
π libnvme_mi_mi_pda_write_zeroes(9) β libnvme API manual β¨
okay so bestie, welcome to the libnvme API manual page for libnvme_mi_m...write_zeroes(9) β yes the title gets truncated like that in the header, it's giving "character limit on the group chat name", but we move π«Ά
πΈ NAME πΈ
libnvme_mi_mi_pda_write_zeroes β Clear a range of the NVMe-MI Persistent Data Area (PDA) to 0h
like, literally wipe a chunk of the PDA to zero. iconic destructive energy π
β¨ SYNOPSIS β¨
int libnvme_mi_mi_pda_write_zeroes (struct libnvme_mi_ep *ep , enum
nvme_mi_pda_dformat dformat , __u32 dofst , __u32 dlen );
it returns an int, it takes four things, no cap π
π¦ ARGUMENTS π¦
epβ the endpoint for MI communication. your connection girlie, the whole vibe of the convo runs through her πdformatβ the data format to use fordofstanddlen, seeenum nvme_mi_pda_dformat. basically the units system so the two numbers below actually mean something πdofstβ starting offset, in units ofdformat, into the PDA to clear. where the zeroing begins, main character starting point πdlenβ length, in units ofdformat, of the PDA to clear starting atdofst. how far the zeroes go from there, periodt π
ngl the units thing matters:dofstanddlenare both measured indformat, not raw bytes. read the enum, bestie π§
π₯ DESCRIPTION π₯
Performs an NVMe-MI PDA Write Zeroes command.
that's it, that's the whole function. it clears a range of the NVMe-MI Persistent Data Area (PDA) to 0h, and it does it via the NVMe-MI PDA Write Zeroes command. lowkey elegant πΈ
β RETURN β
The nvme command status if a response was received (see enum nvme_status_field) or a negative error code otherwise.
so: response came back β you get the nvme command status; no response β negative error code. check it, don't just ignore it, i'm begging π
k that's the whole page, mwah π β brought to you by the libnvme API manual, October 2026 issue, stamped with that libnvme_mi_mi_pda_write_libnvme_mi_m...write_zeroes(9) footer energy because even the footer got truncated. slay πβ¨π¦
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms