| 1 |
.TH "nvme_identify_primary_ctrl" 9 "nvme_identify_primary_ctrl" "November 2025" "libnvme API manual" LINUX |
| 2 |
.SH NAME |
| 3 |
nvme_identify_primary_ctrl \- Retrieve NVMe Primary Controller identification |
| 4 |
.SH SYNOPSIS |
| 5 |
.B "int" nvme_identify_primary_ctrl |
| 6 |
.BI "(int fd " "," |
| 7 |
.BI "__u16 cntid " "," |
| 8 |
.BI "struct nvme_primary_ctrl_cap *cap " ");" |
| 9 |
.SH ARGUMENTS |
| 10 |
.IP "fd" 12 |
| 11 |
File descriptor of nvme device |
| 12 |
.IP "cntid" 12 |
| 13 |
Return controllers starting at this identifier |
| 14 |
.IP "cap" 12 |
| 15 |
User space destination buffer address to transfer the data |
| 16 |
.SH "DESCRIPTION" |
| 17 |
See \fIstruct nvme_primary_ctrl_cap\fP for the definition of the returned structure, \fIcap\fP. |
| 18 |
.SH "RETURN" |
| 19 |
The nvme command status if a response was received (see |
| 20 |
\fIenum nvme_status_field\fP) or -1 with errno set otherwise. |