nvme_mi_adm...s_power_mgmt(9)

✨ NAME ✨

okay so bestie, welcome to the libnvme API manual πŸ’– and today's main character is:

nvme_mi_admin_get_features_power_mgmt β€” get the power management feature πŸŽ€

like. it literally just gets the power management feature. that's the whole vibe. slay.


🌸 SYNOPSIS 🌸

int nvme_mi_admin_get_features_power_mgmt (nvme_mi_ctrl_t ctrl , enum
nvme_get_features_sel sel , __u32 *result );

she takes three things and returns an int, no cap πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ctrl β€” the Controller you're sending the command to. like, who are we talking to. the controller. that one 🫢
  • sel β€” Select which type of attribute to return, see enum nvme_get_features_sel. so you gotta tell her which kind of attribute you want back, iykyk 🌈
  • result β€” The feature data is returned in this argument. so she doesn't return the data, she puts it in here. not me learning this every single time 😭 it's giving pointer energy ✨

πŸ’œ RETURN πŸ’œ

okay so here's the tea:

  • if a response was received, you get the nvme command status (see enum nvme_status_field) πŸ’«
  • otherwise you get -1 with errno set πŸ”₯
lowkey important: it's -1 with errno set, not -1 and vibes. check your errno, bestie, she's trying to tell you something πŸ™ˆ

and that's the whole page, gorgeous. tiny function, big energy. go get those power management features πŸ‘‘


this has been the libnvme API manual, dated August 2026 β€” mwah, ily, go read enum nvme_status_field next πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from