.TH "nvme_init_write_zeros" 2 "nvme_init_write_zeros" "October 2026" "libnvme API manual" LINUX
.SH NAME
nvme_init_write_zeros \- Initialize passthru command for a write zeroes command
.SH SYNOPSIS
.B "void" nvme_init_write_zeros
.BI "(struct libnvme_passthru_cmd *cmd "  ","
.BI "__u32 nsid "  ","
.BI "__u64 slba "  ","
.BI "__u16 nlb "  ","
.BI "__u16 control "  ","
.BI "__u16 dspec "  ","
.BI "__u8 dsm "  ","
.BI "__u8 cev "  ");"
.SH ARGUMENTS
.IP "cmd" 12
Passthru command to use
.IP "nsid" 12
Namespace ID
.IP "slba" 12
Starting logical block
.IP "nlb" 12
Number of logical blocks (0-based)
.IP "control" 12
Upper 16 bits of cdw12
.IP "dspec" 12
Directive specific value
.IP "dsm" 12
Data set management attributes (CETYPE is zero),
see \fIenum nvme_io_dsm_flags\fP
.IP "cev" 12
Command Extension Value (CETYPE is non-zero)
.SH "DESCRIPTION"
Initializes the passthru command buffer for the Write Zeroes command.
.SH "NOTE"
Write Zeroes command does not transfer data or metadata.
