NVME_INIT_SET_FEATURES_POWER_MEASUREMENT-LIBNVME3(2)
π nvme_init_set_features_power_measurement(9) β from the libnvme API manual, bestie π
okay so picture this: it's a libnvme API manual page, the vibe is immaculate, and the function we're stanning today is nvme_init_set_features_power_measurement. yes that's a long name. yes she's worth it. β¨
πΈ NAME πΈ
nvme_init_set_features_power_measurement β literally just initializes a passthru command for Power Measurement, no cap
π¦ SYNOPSIS π¦
void nvme_init_set_features_power_measurement (struct
libnvme_passthru_cmd *cmd , bool sv , __u8 act , __u8 pmts , __u16 smt ,
__u32 actsp );
so it returns void, meaning she does her thing and dips β no return value to obsess over π
β¨ ARGUMENTS β¨
cmdβ the passthru command you're gonna use, periodt π«Άsvβ Save value across power states. it's abool, so like... yes or no, bestie πactβ the Action (ACT). go checkenum nvme_voltage_measurement_actfor this one β and fr fr, the Power Measurement and Voltage Measurement Action field values are defined identically, so don't stress πpmtsβ Power Measurement Type Select (PMTS), and heads up: this one only matters ifactrequests Start Power Measurements πΈsmtβ Stop Measurement Time (SMT), also only used ifactrequests Start Power Measurements. she's conditional, she's mysterious β¨actspβ Action Specific (ACTSP) Command Dword 12 value. Dword 12. very specific. very iconic π
π DESCRIPTION π
she initializes the passthru command buffer for the Set Features command with FID value NVME_FEAT_FID_POWER_MEASUREMENT. that's the whole job. that's her main character moment. β
ngl if you're here it's probably because you're building passthru commands by hand and you wanted the shortcut β and honestly? valid. π§
anyway bestie, that's the whole page β no bugs listed, no exit statuses, no environment variables, just pure vibes and one very specific command buffer setup. ate and left no crumbs π π₯
this iconic little page comes to you from the libnvme API manual, dated October 2026. iykyk ππ
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms