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, see enum 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 a struct 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 -1 go check errno, 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