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, seeenum 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
-1witherrnoset π₯
lowkey important: it's-1witherrnoset, not-1and vibes. check yourerrno, 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
- fedora 44: libnvme-doc 1.16.2-1.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms