nvme_write_zeros - Man Page
Submit an nvme write zeroes command
Synopsis
int nvme_write_zeros (struct nvme_io_args *args );
Arguments
- args
struct nvme_io_args argument structure
Description
The Write Zeroes command sets a range of logical blocks to zero. After successful completion of this command, the value returned by subsequent reads of logical blocks in this range shall be all bytes cleared to 0h until a write occurs to this LBA range.
Return
The nvme command status if a response was received (see enum nvme_status_field) or -1 with errno set otherwise.
Info
August 2024 libnvme API manual