libnvme_mi_control-libnvme3(2)

libnvme_mi_control-libnvme32

Perform a control primitive command

Usage

int libnvme_mi_control (struct libnvme_mi_ep *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

Overview

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, negative error code otherwise.

From nvme-cli 3.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.