nvme_init_g..._measurement(9)
π NAME π
nvme_init_get_log_power_measurement β Initialize passthru command for Power Measurement
okay so this page is nvme_init_g..._measurement(9) from the libnvme API manual, and the actual function name is the long one above. the way that this one just sets up the passthru command for power measurement is honestly iconic. periodt. β¨
β¨ SYNOPSIS β¨
void nvme_init_get_log_power_measurement (struct libnvme_passthru_cmd *cmd , struct nvme_power_meas_log *log , __u32 len );
bestie, that's the whole signature β spaces before the commas included, no editing, no "fixing" the vibe. π
π ARGUMENTS π
cmdβ Passthru command to use. this is the command struct that's getting initialized, slay.logβ User address to store the log page. yes queen, that's where the log page data goes. π¦lenβ The allocated length of the log page. keep track of how much room you gave it, fr fr.
π¦ DESCRIPTION π¦
Initializes the passthru command buffer for the Get Log command with LID value NVME_LOG_LID_POWER_MEASUREMENT.
that's it, that's the whole glow-up: it preps the passthru command buffer for the Get Log command, and the LID value is literally NVME_LOG_LID_POWER_MEASUREMENT. no cap. π₯
okay bye bestie! this page is from the libnvme API manual, footer date October 2026, and the footer's source/version tag is nvme_init_get_log_power_meas / nvme_init_g..._measurement(9). mwah ππ
π¦ 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