| 1 |
.TH "nvme_ns_attach_ctrls" 9 "nvme_ns_attach_ctrls" "November 2025" "libnvme API manual" LINUX |
| 2 |
.SH NAME |
| 3 |
nvme_ns_attach_ctrls \- Attach namespace to controllers |
| 4 |
.SH SYNOPSIS |
| 5 |
.B "int" nvme_ns_attach_ctrls |
| 6 |
.BI "(int fd " "," |
| 7 |
.BI "__u32 nsid " "," |
| 8 |
.BI "struct nvme_ctrl_list *ctrlist " ");" |
| 9 |
.SH ARGUMENTS |
| 10 |
.IP "fd" 12 |
| 11 |
File descriptor of nvme device |
| 12 |
.IP "nsid" 12 |
| 13 |
Namespace ID to attach |
| 14 |
.IP "ctrlist" 12 |
| 15 |
Controller list to modify attachment state of nsid |
| 16 |
.SH "RETURN" |
| 17 |
The nvme command status if a response was received (see |
| 18 |
\fIenum nvme_status_field\fP) or -1 with errno set otherwise. |