nvme_get_lo...rted_effects(2)
π nvme_get_log_mi_cmd_supported_effects β libnvme API manual, section 2 π¦
okay bestie, sit DOWN, because we're doing a manpage and it's actually gonna be fun. this one lives in the libnvme API manual, section 2, and yes the title up top is all nvme_get_lo...rted_effects(2) because apparently even the header needed a lil trim π. anyway, it's giving "let me peek at what MI commands this controller can actually do" energy and we're obsessed.
β¨ NAME β¨
nvme_get_log_mi_cmd_supported_effects β displays the MI Commands Supported by the controller π
like. it literally shows you the MI commands your controller supports. no cap, that's the whole job.
π SYNOPSIS π
int nvme_get_log_mi_cmd_supported_effects (int fd , bool rae , struct
nvme_mi_cmd_supported_effects_log *log );
three args, returns an int, absolute main character energy. let's break it down π«Ά
πΈ ARGUMENTS πΈ
fdβ the file descriptor of the nvme device. it's the lil handle telling us which device we're talking to β¨raeβ retain asynchronous events. abool, so it's a yes/no vibe check on whether we're holding onto those async events or not πlogβ the MI Command Supported and Effects data structure. this is where the good stuff gets written, astruct nvme_mi_cmd_supported_effects_log *no less π
π RETURN π
here's the tea: you get back the nvme command status if a response was actually received β and like, go look at enum nvme_status_field for the deets on those. ORRR you get -1 and errno is set instead π
fr fr, if you see-1, checkerrno. that's your sign, bestie. don't ignore it π
and that's the whole page, iconic behavior honestly. this gem comes to you from the libnvme API manual and it's dated July 2026 β so yes, it's serving future-forward and also literally just July 2026, which is a whole mood βπ slay, go read your logs. periodt. π
π¦ 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