| 1 |
.TH "nvme_namespace_attach_ctrls" 9 "nvme_namespace_attach_ctrls" "November 2025" "libnvme API manual" LINUX |
| 2 |
.SH NAME |
| 3 |
nvme_namespace_attach_ctrls \- Attach namespace to controller(s) |
| 4 |
.SH SYNOPSIS |
| 5 |
.B "int" nvme_namespace_attach_ctrls |
| 6 |
.BI "(int fd " "," |
| 7 |
.BI "__u32 nsid " "," |
| 8 |
.BI "__u16 num_ctrls " "," |
| 9 |
.BI "__u16 *ctrlist " ");" |
| 10 |
.SH ARGUMENTS |
| 11 |
.IP "fd" 12 |
| 12 |
File descriptor of nvme device |
| 13 |
.IP "nsid" 12 |
| 14 |
Namespace ID to attach |
| 15 |
.IP "num_ctrls" 12 |
| 16 |
Number of controllers in ctrlist |
| 17 |
.IP "ctrlist" 12 |
| 18 |
List of controller IDs to perform the attach action |
| 19 |
.SH "RETURN" |
| 20 |
The nvme command status if a response was received (see |
| 21 |
\fIenum nvme_status_field\fP) or -1 with errno set otherwise. |