NVME_GET_FEATURES_POWER_MGMT(2)

✨ NAME ✨

nvme_get_features_power_mgmt β€” okay bestie, this one grabs the power management feature for you πŸ’…

It's a lil function from the libnvme API manual, section 2, and she is so useful, no cap 🫢


🌸 SYNOPSIS 🌸

int nvme_get_features_power_mgmt (int fd , enum nvme_get_features_sel
sel , __u32 *result );

Like… that's the whole vibe. Three little things go in, an int comes out πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • fd β€” the file descriptor of your nvme device, bestie. Your lil passport to the drive πŸͺͺ✨
  • sel β€” which type of attribute you want back. Go check enum nvme_get_features_sel for the menu, it's giving ✨build-your-own-feature✨ πŸ“
  • result β€” the command completion result, straight outta CQE dword0 πŸ‘‘ (yes, dword0. she's iconic like that.)

πŸ’– RETURN πŸ’–

So here's what you get back, fr fr:

The nvme command status if a response was received β€” peep enum nvme_status_field for the full deets on what that status could be πŸ‘€

…or -1 with errno set, if it's not that πŸ’€ (otherwise, as the elders say)


lowkey important: it's either a real status code OR a -1 + errno situation. There is no third option, periodt πŸ’…

<div align="center">🌸 πŸ¦‹ πŸŽ€ πŸ¦‹ 🌸</div>

That's the whole page, bestie!! July 2026, brought to you by the libnvme API manual β€” go forth and get those features πŸ‘‘βœ¨πŸ’œ

πŸ“¦ where this page comes from