nvme_set_features_auto_pst(2)
β¨ nvme_set_features_auto_pst(2) β¨
okay bestie, welcome to the libnvme API manual π this one's called nvme_set_features_auto_pst and it's about to set your autonomous power state feature and honestly? slay.
πΈ NAME πΈ
nvme_set_features_auto_pst β Set autonomous power state feature π
π SYNOPSIS π
int nvme_set_features_auto_pst (int fd , bool apste , bool save , struct
nvme_feat_auto_pst *apst , __u32 *result );
like, five things go in, one int comes out, no cap π
π¦ ARGUMENTS π¦
fdβ the File descriptor of the nvme device. it's literally your golden ticket to the device, don't lose it ποΈapsteβ Autonomous Power State Transition Enable. this is the on/off switch for the whole auto-transition vibe β¨saveβ Save value across power states. set it and the setting sticks around even after a power state change. main character energy fr π«Άapstβ Autonomous Power State Transition, astruct nvme_feat_auto_pst *. the actual table of transition deets, pointing at it like ππ§resultβ The command completion result from CQE dword0</so>. yeah it hands you back a__u32 *of what the completion queue entry's dword0 said, ikyk π
π RETURN π
so what do you get back? it returns the nvme command status if a response was received (go peek at enum nvme_status_field for the full tea β), or -1 with errno set otherwise π
bestie. if you get the-1, that's not a slay, that's an error β go checkerrno, it knows what happened π
and that's the whole page, periodt π this lil' gem lives in the libnvme API manual, dated July 2026 β thank you for coming to my ted talk, mwah ππβ¨
π¦ 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