nvme\_init\_set\_features\_power\_measurement(9) libnvme API manual nvme\_init\_set\_features\_power\_measurement(9)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

# [ARGUMENTS](#ARGUMENTS)

[cmd](#cmd)

Passthru command to use

[sv](#sv)

Save value across power states

[act](#act)

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

[pmts](#pmts)

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

[smt](#smt)

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

[actsp](#actsp)

Action Specific (ACTSP) Command Dword 12 value

# [DESCRIPTION](#DESCRIPTION)

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

nvme\_init\_set\_features\_power\_measurement October 2026

---

Document: nvme_init_set_features_power_measurement-libnvme3(2) from nvme-cli 3.2-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
