nvme_init_s...s_power_mgmt(9)
β¨ NAME β¨
nvme_init_set_features_power_mgmt β bestie, this is the one that sets up your passthru command for Power Management π
(also hi, you're reading the libnvme API manual, welcome to the group chat π«Ά)
πΈ SYNOPSIS πΈ
void nvme_init_set_features_power_mgmt (struct libnvme_passthru_cmd *cmd
, bool sv , __u8 ps , __u8 wh );
Like, she's void, she takes four things, and she does not return anything because she's too busy being iconic π
π ARGUMENTS π
cmdβ the passthru command you're gonna use, bestie. She gets written into, so hand her over πsvβ Save value across power states. It's abool, so like... yes or no, no in-between πpsβ Power State. A__u8, so keep it smol and legal β¨whβ Workload Hint. Also a__u8. She's hinting, she's not committing π¦
π« DESCRIPTION π«
okay so here's the tea β β this function initializes the passthru command buffer for the Set Features command, with the FID value NVME_FEAT_FID_PWRMGMT_PS.
That's it. That's the whole vibe. You give her a cmd, the sv, ps, and wh values, and she fills in that buffer so the Set Features / Power Management passthru is ready to slay π₯
no cap, she doesn't return anything and she doesn't do the actual command for you β she just preps the buffer. the rest is your main character era β¨
π§ sign-off π§
and that's the whole page, bestie!! this lil gem lives in the libnvme API manual, dated October 2026 β stan her, cite her, and go init those power mgmt commands 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