NVME_GET_FEATURES_IOCS_PROFILE(2)
π NAME π
nvme_get_features_iocs_profile β bestie, this one grabs the IOCS profile feature for you β¨
Likeβ¦ it's literally the getter for that feature. No cap. π
πΈ SYNOPSIS πΈ
int nvme_get_features_iocs_profile (int fd , enum nvme_get_features_sel
sel , __u32 *result );
π¦ ARGUMENTS π¦
fdβ the file descriptor of your nvme device, aka the little handle that says "yes ma'am, this is the drive we're talking to" πselβ picks which kind of attribute you want back π it's anenum nvme_get_features_sel, so go check that enum for the actual options, iykykresultβ the command completion result, straight from CQE dword0 π that's where the answer lands, so hand it a pointer to a__u32and let it cook
β RETURN β
It gives you back the nvme command status if a response actually came through β peep enum nvme_status_field for what those values mean π
And if things go sideways instead? You get -1, with errno set. Classic. π
ngl bestie, always check that return value. -1 is not a vibe. π
that's the whole page, you ate it π«Ά this was the libnvme API manual for nvme_get_fea...iocs_profile(2), dated July 2026 β mwah, now go get those features β¨ππΈ
π¦ 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