nvme_init_write_zeros(9)
πΈ NAME πΈ
okay bestie, welcome to the libnvme API manual entry for nvme_init_write_zeros β and the vibe is literally: initialize passthru command for a write zeroes command. periodt. π
β¨
β¨ SYNOPSIS β¨
here's the exact signature, no cap β copy it character for character:
void nvme_init_write_zeros (struct libnvme_passthru_cmd *cmd , __u32
nsid , __u64 slba , __u16 nlb , __u16 control , __u16 dspec , __u8 dsm ,
__u8 cev );
π ARGUMENTS π
okay so these are the little besties you pass in:
cmdβ Passthru command to use. This is the command buffer getting the glow-up. π«Άnsidβ Namespace ID. iconic namespace behavior, honestly.slbaβ Starting logical block. that's where the party starts. β¨nlbβ Number of logical blocks (0-based). yes bestie, zero-based, keep up. πcontrolβ Upper 16 bits ofcdw12. highkey important bits.dspecβ Directive specific value. it's giving very specific directive energy.dsmβ Data set management attributes (CETYPE is zero), seeenum nvme_io_dsm_flags. so when CETYPE is zero, this is your dsm bestie. π¦cevβ Command Extension Value (CETYPE is non-zero). and when CETYPE is non-zero, this is the one. π
π DESCRIPTION π
Initializes the passthru command buffer for the Write Zeroes command. That's it. That's the whole main character energy: you hand it the cmd buffer plus all the fields above, and it gets the passthru command buffer ready for Write Zeroes. slay. π₯
β NOTE β
bestie, important vibe check: the Write Zeroes command does not transfer data or metadata. not a single byte of data, not a single byte of metadata. not me double-checking that. ππ
mwah π β source/version: libnvme API manual; date: October 2026; page: nvme_init_write_zeros(9). bye bestie, go initialize those write zeroes commands! π«Άβ¨
π¦ 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