---
name: "nvme_init_lm_cdq_create-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/nvme_init_lm_cdq_create-libnvme3"
---

# nvme\_init\_lm\_cdq\_create-libnvme3(2)

Initialize passthru command for Controller Data Queue create - Controller Data Queue command

## NAME

nvme\_init\_lm\_cdq\_create - Initialize passthru command for Controller Data Queue create - Controller Data Queue command

## SYNOPSIS

**void nvme\_init\_lm\_cdq\_create** **(struct libnvme\_passthru\_cmd \*cmd** *,* **\_\_u16 mos** *,* **\_\_u16 cntlid** *,* **\_\_u32 cdqsize** *,* **void \*data** *);*

## ARGUMENTS

- cmd

  Passthru command to use

- mos

  Management Operation Specific (MOS): This field is specific to the SEL type

- cntlid

  Controller ID: For Create CDQ, specifies the target migratable controller

- cdqsize

  For Create CDQ, specifies the size of CDQ, in dwords - 4 byte

- data

  Pointer to data buffer

## DESCRIPTION

Initializes the passthru command buffer for the Controller Data Queue command. Note: The result CDQID is returned in the CQE dword0, which the submission function must handle.
