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

nvme_zns_report_zones - Return the list of zones

int nvme_zns_report_zones (int fd , __u32 nsid , __u64 slba , enum nvme_zns_report_options opts , bool extended , bool partial , __u32 data_len , void *data , __u32 timeout , __u32 *result );

File descriptor of nvme device
Namespace ID
Starting LBA
Reporting options
Extended report
Partial report requested
Length of the data buffer
Userspace address of the report zones data
timeout in ms
The command completion result from CQE dword0

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

nvme_zns_report_zones January 2023