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

nvmf_get_discovery_log - Return the discovery log page

int nvmf_get_discovery_log (nvme_ctrl_t c , struct nvmf_discovery_log **logp , int max_retries );

Discovery controller to use
Pointer to the log page to be returned
Number of retries in case of failure

The memory allocated for the log page and returned in logp must be freed by the caller using free.

Consider using nvmf_get_discovery_wargs instead.

0 on success; on failure -1 is returned and errno is set

nvmf_get_discovery_log January 2023