libnvmf_get_discovery_log-libnvme32
Fetch the nvme-of discovery log page
Usage
int libnvmf_get_discovery_log (struct libnvme_ctrl *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 |
Overview
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.