nvme_mi_adm...s_power_mgmt(9)
β¨ NAME β¨
nvme_mi_admin_set_features_power_mgmt β Set power management feature π
okay so bestie, welcome to the libnvme API manual π this one's a little function that sets the power management feature, and honestly? it's giving "tiny function, big responsibilities" energy. let's get into it π¦
πΈ SYNOPSIS πΈ
int nvme_mi_admin_set_features_power_mgmt (nvme_mi_ctrl_t ctrl , __u8 ps
, __u8 wh , bool save , __u32 *result );
like yes, it's a mouthful of a name, but the way that it just works? obsessed π
π« ARGUMENTS π«
ctrlβ the Controller to send command to. this is your main character, the one you're talking to π«Άpsβ Power State. an__u8, so keep it smol and cute β¨whβ Workload Hint. also an__u8, also here to help πΈsaveβ abool, and its whole deal is Save value across power states π so if you want it to stick around, say yes fr frresultβ a__u32 *and The feature data is returned in this argument π she's a pointer, she's writing back to you, she's literally the messenger
π¦ RETURN π¦
so here's the tea: you get the nvme command status if a response was received β and yes, you should go peek at enum nvme_status_field for what those statuses actually mean, iykyk π
but if no response came back at all? it returns -1 with errno set instead. so like, check your errno, bestie, don't just stare at the -1 and hope for the best π
no cap:-1means the whole thing fell through anderrnois holding the receipts. read it. π
and that's the whole page, periodt πβ
this was the libnvme API manual, dated August 2026 π thanks for reading my little function breakdown, mwah ππ§
π¦ 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