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

nvme_ns_rescan - Initiate a controller rescan

int nvme_ns_rescan (int fd );

File descriptor of nvme device

This should only be sent to controller handles, not to namespaces.

0 if a rescan was initiated or -1 with errno set otherwise.

nvme_ns_rescan January 2023