---
name: "nvme_init_set_features_power_measurement-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_set_features_power_measurement-libnvme3"
---

# nvme\_init\_set\_features\_power\_measurement-libnvme3(2)

Initialize passthru command for Power Measurement

## NAME

nvme\_init\_set\_features\_power\_measurement - Initialize passthru command for Power Measurement

## SYNOPSIS

**void nvme\_init\_set\_features\_power\_measurement** **(struct libnvme\_passthru\_cmd \*cmd** *,* **bool sv** *,* **\_\_u8 act** *,* **\_\_u8 pmts** *,* **\_\_u16 smt** *,* **\_\_u32 actsp** *);*

## ARGUMENTS

- cmd

  Passthru command to use

- sv

  Save value across power states

- act

  Action (ACT), see *enum nvme\_voltage\_measurement\_act* (the Power Measurement and Voltage Measurement Action field values are defined identically)

- pmts

  Power Measurement Type Select (PMTS), used if *act* requests Start Power Measurements

- smt

  Stop Measurement Time (SMT), used if *act* requests Start Power Measurements

- actsp

  Action Specific (ACTSP) Command Dword 12 value

## DESCRIPTION

Initializes the passthru command buffer for the Set Features command with FID value NVME\_FEAT\_FID\_POWER\_MEASUREMENT
