| 1 |
.TH "nvme_write_zeros" 9 "nvme_write_zeros" "November 2025" "libnvme API manual" LINUX |
| 2 |
.SH NAME |
| 3 |
nvme_write_zeros \- Submit an nvme write zeroes command |
| 4 |
.SH SYNOPSIS |
| 5 |
.B "int" nvme_write_zeros |
| 6 |
.BI "(struct nvme_io_args *args " ");" |
| 7 |
.SH ARGUMENTS |
| 8 |
.IP "args" 12 |
| 9 |
\fIstruct nvme_io_args\fP argument structure |
| 10 |
.SH "DESCRIPTION" |
| 11 |
The Write Zeroes command sets a range of logical blocks to zero. After |
| 12 |
successful completion of this command, the value returned by subsequent |
| 13 |
reads of logical blocks in this range shall be all bytes cleared to 0h until |
| 14 |
a write occurs to this LBA range. |
| 15 |
.SH "RETURN" |
| 16 |
The nvme command status if a response was received (see |
| 17 |
\fIenum nvme_status_field\fP) or -1 with errno set otherwise. |