nvme_get_features_auto_pst(2)
π nvme_get_features_auto_pst(2) π
okay so bestie, welcome to the libnvme API manual πΈ this one's all about grabbing the autonomous power state feature off your NVMe device. yes, autonomous. yes, power. it's giving self-sufficient energy management π
β¨ NAME β¨
nvme_get_features_auto_pst β Get autonomous power state feature π¦
β¨ SYNOPSIS β¨
int nvme_get_features_auto_pst (int fd , enum nvme_get_features_sel sel
, struct nvme_feat_auto_pst *apst , __u32 *result );
like, four arguments, one int, no drama π
β¨ ARGUMENTS β¨
fdβ File descriptor of nvme device π₯ this is the whole "which drive are we talking to" situation.selβ Select which type of attribute to return, seeenum nvme_get_features_selβ¨ you literally pick the flavor of attribute you want back.apstβ soβ¦ the original manual page has literally no description here π like, blank. nothing. empty. I'm not gonna make something up about it because that would be lying to you and we don't do that in this group chat. It's there, it's astruct nvme_feat_auto_pst *, and the manpage said nothing else. periodt.resultβ The command completion result from CQE dword0 π that's the lil value the controller hands back when it's done.
β¨ RETURN β¨
The nvme command status if a response was received (see enum nvme_status_field) β or -1 with errno set otherwise π
fr fr, if you get-1go checkerrno, that's where the tea is β
and that's the whole page bestie, no notes π this was the libnvme API manual page nvme_get_features_auto_pst(2), dated July 2026 π mwah, slay, go query your device's autonomous power state πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· 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