---
name: "nvme_init_ctrl_list"
section: "2"
platform: "linux"
package: "libnvme-dev"
version: "1.13-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nvme_init_ctrl_list"
---

# nvme\_init\_ctrl\_list(2)

Initialize an nvme\_ctrl\_list structure from an array.

## NAME

nvme\_init\_ctrl\_list - Initialize an nvme\_ctrl\_list structure from an array.

## SYNOPSIS

**void nvme\_init\_ctrl\_list** **(struct nvme\_ctrl\_list \*cntlist** *,* **\_\_u16 num\_ctrls** *,* **\_\_u16 \*ctrlist** *);*

## ARGUMENTS

- cntlist

  The controller list structure to initialize

- num\_ctrls

  The number of controllers in the array, *ctrlist*.

- ctrlist

  An array of controller identifiers in CPU native endian.

## DESCRIPTION

This is intended to be used with any command that takes a controller list argument. See **nvme\_ns\_attach\_ctrls** and **nvme\_ns\_detach**.
