libnvmf_get_discovery_log(9)

NAME
libnvmf_get_discovery_log - Fetch the NVMe-oF discovery log page

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

ARGUMENTS

ctrl
    Discovery controller

args
    Optional arguments (pass NULL for defaults)

logp
    On success, set to the allocated log page (caller must free)

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

RETURN
0 on success, negative error code otherwise.