nvme_mi_adm...rted_effects(2)
okay so grab your iced coffee bestie β because we're reading the libnvme API manual, page 2, and the star of the show is nvme_mi_admin_get_log_fid_supported_effects β¨. yes the page name got cut off to nvme_mi_adm...rted_effects and honestly? she's too iconic for a full name anyway π
. no cap, this is the one that pulls the Feature Identifiers Supported and Effects tea.
β¨ NAME β¨
nvme_mi_admin_get_log_fid_supported_effects β Retrieve Feature Identifiers Supported and Effects π
like, that's literally her job. she goes and gets the FID supported + effects info. periodt.
π¦ SYNOPSIS π¦
int nvme_mi_admin_get_log_fid_supported_effects (nvme_mi_ctrl_t ctrl ,
bool rae , struct nvme_fid_supported_effects_log *log );
yes she takes three little arguments and returns an int, main character energy π
πΈ ARGUMENTS πΈ
ctrlβ Controller to query π this is the controller you're asking, so pick the right one bestie, don't be texting the wrong group chat.raeβ Retain asynchronous events π«Ά it's abool, so it's giving either-coded.logβ FID Supported and Effects data structure π this is where the whole answer lands, so hand her a real struct to fill, not vibes.
π RETURN π
The nvme command status if a response was received (see enum nvme_status_field) or -1 with errno set otherwise π
so like: response came back? you get the nvme command status, and enum nvme_status_field is where you go read what that status means. no response? you get -1 and errno gets set to tell you why. lowkey rude of her but that's the deal π
bestie reminder:-1+errnois not a vibe check you want to fail. always peek aterrno, fr fr.
and that's the whole page, no skips, we read every line ππ§
sign-off szn: this was the libnvme API manual, dated July 2026 π obsessed with her, truly. mwah, go query a controller responsibly, ily π«Άπ
π¦ 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