NVME_INIT_SET_FEATURES_VOLTAGE_MEASUREMENT-LIBNVME3(2)
okay so bestie, welcome to nvme_init_set_features_voltage_measurement(9) β that's the page label, and it lives in the libnvme API manual (section 9, iykyk). The header up top shows nvme_init_se..._measurement(9) because truncation is iconic, and we're rolling with it. π
π NAME π
nvme_init_set_features_voltage_measurement β this is the function that initializes a passthru command for Voltage Measurement. That's the whole assignment, and it ate. β¨
π SYNOPSIS π
here's the signature, copied exactly because we do not play with code lol:
void nvme_init_set_features_voltage_measurement (struct libnvme_passthru_cmd *cmd , bool sv , __u8 act , struct nvme_voltage_measurement_start_data *data );
yeah, the return type is void, so it doesn't hand anything back. periodt.
π ARGUMENTS π
cmdβ the passthru command you're setting up. It's astruct libnvme_passthru_cmd *, and it's the thing that gets used. π«Άsvβ Save value across power states. It's abool, bestie.actβ the Action (ACT). It's__u8, and you should checkenum nvme_voltage_measurement_actfor the values. πdataβ Start Voltage Measurements data buffer, typestruct nvme_voltage_measurement_start_data *. It's used ifactisNVME_VOLTAGE_MEASUREMENT_ACT_START; otherwise it'sNULL. Seestruct nvme_voltage_measurement_start_data. π
π₯ DESCRIPTION π₯
okay so what it actually does: it initializes the passthru command buffer for the Set Features command, and the FID value it uses is NVME_FEAT_FID_VOLTAGE_MEASUREMENT. that's the tea. β
mwah π that's the whole page. the source/version vibe is the libnvme API manual, and the date on this baddie is October 2026. byeeeee, go measure those voltages responsibly π§ββοΈπ«Ά
π¦ 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