NVME_MI_ADMIN_GET_LOG_ERROR(2)
π NAME π
nvme_mi_admin_get_log_error β bestie, this is the one that goes and retrieves the nvme error log for you π«Ά
Like. It's literally in the libnvme API manual. She's an icon, she's a function, she has β¨fourβ¨ arguments, and we're gonna go through every single one. No cap.
πΈ SYNOPSIS πΈ
int nvme_mi_admin_get_log_error (nvme_mi_ctrl_t ctrl , unsigned int
nr_entries , bool rae , struct nvme_error_log_page *err_log );
Okay so she takes ctrl, nr_entries, rae, and err_log, and she hands you back an int. That's the whole vibe. Periodt. π
π ARGUMENTS π
ctrlβ the Controller you're querying, aka the one you're being nosy about πnr_entriesβ how many error log entries you actually allocated. You gotta do the math yourself, she's not gonna count for you fr frraeβ Retain asynchronous events. Yes ma'am, hold onto those π«°err_logβ your array of error logs, sized to 'entries'. You bring the container, she brings the lore π¦
π¦ DESCRIPTION π¦
So this log page is out here describing extended error information for a command that completed with error π β OR, plot twist, it may report an error that is not specific to a particular command. It's giving "the problem is bigger than one command, sweety." The way that it just. tells you things. Obsessed.
β RETURN β
She gives you the nvme command status if a response was received β check enum nvme_status_field for the deets, iykyk β or she hits you with -1 with errno set otherwise. π Not the -1, but okay, that's just how it is.
And that's the whole page, bestie! This was the libnvme API manual, dropping July 2026 β go off, write some good error-log-reading code, and remember: read your errno. Slay. πβ¨
π¦ 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