libnvmf_get_discovery_log(9) libnvme API manual libnvmf_get_discovery_log(9)

libnvmf_get_discovery_log - Fetch the NVMe-oF discovery log page

int libnvmf_get_discovery_log (struct libnvme_ctrl *ctrl , const struct libnvmf_discovery_args *args , struct nvmf_discovery_log **logp );

Discovery controller
Optional arguments (pass NULL for defaults)
On success, set to the allocated log page (caller must free)

Issues the three-phase Get Log Page protocol against ctrl, validates generation-counter atomicity, and normalises each log entry.

0 on success, negative error code otherwise.

libnvmf_get_discovery_log September 2026