NVME_INIT_GET_FEATURES_TEMP_THRESH-LIBNVME3(2)
π nvme_init_get_features_temp_thresh β libnvme API manual, bestie edition
okay so this is a page from the libnvme API manual, section 9, and it's about exactly one function: nvme_init_get_features_temp_thresh. that's the whole main character. no cap.
β¨ NAME β¨
nvme_init_get_features_temp_thresh β bestie, this is the one that initializes the passthru command for Get Features β Temperature Threshold. that's it. that's the job. π
π¦ SYNOPSIS π¦
void nvme_init_get_features_temp_thresh (struct libnvme_passthru_cmd
*cmd , enum nvme_get_features_sel sel , __u8 tmpsel , enum
nvme_feat_tmpthresh_thsel thsel );
like, four whole arguments, and every one of them matters. it returns void, so it's giving "i set things up and hand you back nothing, you're welcome" energy. π
π ARGUMENTS π
cmdβ the passthru command you're gonna use. this is the buffer getting initialized, so it's lowkey the VIP here. πselβ selects which type of attribute to return β seeenum nvme_get_features_selfor the actual vibes. πtmpselβ Threshold Temperature Select. it's a__u8, bestie, a whole tiny byte of choosing. π‘οΈthselβ Threshold Type Select. yeah, there's a select for the type and a select for the value. iconic, honestly. β¨
π DESCRIPTION π
so what does it actually do? it initializes the passthru command buffer for the Get Features command, and it slaps the FID value NVME_FEAT_FID_TEMP_THRESH in there. that's the whole thing. it ate and left no crumbs. π₯
like, you hand it your cmd, you tell it your sel, your tmpsel, your thsel, and it wires up the buffer for a Get Features call with that specific FID. genuinely obsessed with how straightforward this is. π«Ά
ngl there is no return value and no error handling listed here β it's void, so don't come looking for a status code, bestie. π
that's the whole page, fr fr β no hidden options, no surprise environment variables, nothing else lurking. π§
πΈ mwah, thanks for reading, ily β this little rewrite was brought to you by the libnvme API manual, dated October 2026. go warm up those thresholds responsibly. πππ¦
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms