LIBNVME_MI_MI_PDA_WRITE_ZEROES-LIBNVME3(2)

πŸ“¦ version 3.2, in arch rolling

πŸ’… 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 for dofst and dlen, see enum nvme_mi_pda_dformat. basically the units system so the two numbers below actually mean something 🌈
  • dofst β€” starting offset, in units of dformat, into the PDA to clear. where the zeroing begins, main character starting point πŸ‘‘
  • dlen β€” length, in units of dformat, of the PDA to clear starting at dofst. how far the zeroes go from there, periodt πŸ’…
ngl the units thing matters: dofst and dlen are both measured in dformat, 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