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

nvme_identify_ctrl_list - Retrieves identify controller list

int nvme_identify_ctrl_list (int fd , __u16 cntid , struct nvme_ctrl_list *cntlist );

File descriptor of nvme device
Starting CNTLID to return in the list
User space destination address to transfer the data

Up to 2047 controller identifiers is returned containing a controller identifier greater than or equal to the controller identifier specified in cntid.

See struct nvme_ctrl_list for a definition of the structure returned.

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

nvme_identify_ctrl_list January 2023