nvme_init_s...s_power_mgmt(9)

πŸ“¦ version 3.2, in arch rolling

✨ 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 a bool, 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