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

# nvme\_mi\_control(2)

Perform a Control Primitive command

## NAME

nvme\_mi\_control - Perform a Control Primitive command

## SYNOPSIS

**int nvme\_mi\_control** **(nvme\_mi\_ep\_t ep** *,* **\_\_u8 opcode** *,* **\_\_u16 cpsp** *,* **\_\_u16 \*result\_cpsr** *);*

## ARGUMENTS

- ep

  endpoint for MI communication

- opcode

  Control Primitive opcode (using *enum nvme\_mi\_control\_opcode*)

- cpsp

  Control Primitive Specific Parameter

- result\_cpsr

  Optional field to return the result from the CPSR field

## DESCRIPTION

Perform a Control Primitive command, using the opcode specified in *opcode* Stores the result from the CPSR field in *result\_cpsr* if set.

See: *enum nvme\_mi\_control\_opcode*

## RETURN

0 on success, non-zero on failure
