1nvme_write_zeros(9) libnvme API manual nvme_write_zeros(9)
2
3
4
6 nvme_write_zeros - Submit an nvme write zeroes command
7
9 int nvme_write_zeros (struct nvme_io_args *args );
10
12 args struct nvme_io_args argument structure
13
15 The Write Zeroes command sets a range of logical blocks to zero. After
16 successful completion of this command, the value returned by subsequent
17 reads of logical blocks in this range shall be all bytes cleared to 0h
18 until a write occurs to this LBA range.
19
21 The nvme command status if a response was received (see enum nvme_sta‐
22 tus_field) or -1 with errno set otherwise.
23
24
25
26November 2022 nvme_write_zeros nvme_write_zeros(9)