NVME_GET_FEATURES_TEMP_THRESH2(2)

πŸ’– nvme_get_features_temp_thresh2 πŸ’–

okay bestie, welcome to the libnvme API manual β€” this one's nvme_get_features_temp_thresh2, and yes, it's a mouthful, we're saying it with our whole chest. it lives in section 9, and it's literally just the "get temperature threshold feature" girlie. that's the whole vibe. 🌑️✨


🌸 NAME 🌸

nvme_get_features_temp_thresh2 β€” Get temperature threshold feature


πŸŽ€ SYNOPSIS πŸŽ€

int nvme_get_features_temp_thresh2 (int fd , enum nvme_get_features_sel
sel , __u8 tmpsel , enum nvme_feat_tmpthresh_thsel thsel , __u32 *result
);

no cap, that's the whole signature. five arguments. she's a lot but she's worth it. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • fd β€” File descriptor of nvme device. yeah bestie, you gotta tell her which device we're talking to. standard.
  • sel β€” Select which type of attribute to return, see enum nvme_get_features_sel. like, which flavor of answer do you want back? iykyk.
  • tmpsel β€” Threshold Temperature Select. pick your temperature threshold, queen.
  • thsel β€” Threshold Type Select. and this one picks the type of threshold. two selects, because why have one when you can have two, right? 😭
  • result β€” The command completion result from CQE dword0. this is where the answer lands. it's giving "here's your tea, bestie." πŸ“

⭐ RETURN ⭐

so here's what you get back:

  • The nvme command status if a response was received β€” go peek at enum nvme_status_field for the deets πŸ‘€
  • or -1 with errno set, in literally every other case. πŸ’€
fr fr, -1 means check errno β€” she's not gonna tell you what went wrong any other way.

πŸ’œ SEE ALSO πŸ’œ

enum nvme_get_features_sel, enum nvme_feat_tmpthresh_thsel, enum nvme_status_field


mwah πŸ’‹ that's the whole page, bestie β€” go get those temperature thresholds, you absolute icon. this little love letter comes from the libnvme API manual and it's dated August 2026 🫢🌸 (and yes, the footer on the original is just nvme_get_fea...temp_thresh2(9) because apparently even the manpage gods couldn't fit the whole name in. iconic behavior honestly. πŸŽ€)

πŸ“¦ where this page comes from