DOKK / manpages / debian 12 / libnvme-dev / nvme_flush.2.en
nvme_flush(2) libnvme API manual nvme_flush(2)

nvme_flush - Send an nvme flush command

int nvme_flush (int fd , __u32 nsid );

File descriptor of nvme device
Namespace identifier

The Flush command requests that the contents of volatile write cache be made non-volatile.

The nvme command status if a response was received (see enum nvme_status_field) or -1 with errno set otherwise.

nvme_flush January 2023