NVME_INIT_SET_FEATURES_POWER_MEASUREMENT-LIBNVME3(2)

πŸ“¦ version 3.2, in arch rolling

πŸ’… 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 a bool, so like... yes or no, bestie 🌈
  • act β€” the Action (ACT). go check enum nvme_voltage_measurement_act for 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 if act requests Start Power Measurements 🌸
  • smt β€” Stop Measurement Time (SMT), also only used if act requests 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