| 1 |
.TH "nvmf_get_discovery_log" 9 "nvmf_get_discovery_log" "November 2025" "libnvme API manual" LINUX |
| 2 |
.SH NAME |
| 3 |
nvmf_get_discovery_log \- Return the discovery log page |
| 4 |
.SH SYNOPSIS |
| 5 |
.B "int" nvmf_get_discovery_log |
| 6 |
.BI "(nvme_ctrl_t c " "," |
| 7 |
.BI "struct nvmf_discovery_log **logp " "," |
| 8 |
.BI "int max_retries " ");" |
| 9 |
.SH ARGUMENTS |
| 10 |
.IP "c" 12 |
| 11 |
Discovery controller to use |
| 12 |
.IP "logp" 12 |
| 13 |
Pointer to the log page to be returned |
| 14 |
.IP "max_retries" 12 |
| 15 |
Number of retries in case of failure |
| 16 |
.SH "DESCRIPTION" |
| 17 |
The memory allocated for the log page and returned in \fIlogp\fP |
| 18 |
must be freed by the caller using \fBfree\fP. |
| 19 |
.SH "NOTE" |
| 20 |
Consider using \fBnvmf_get_discovery_wargs\fP instead. |
| 21 |
.SH "RETURN" |
| 22 |
0 on success; on failure -1 is returned and errno is set |