nvme_mi_admin_get_log_page(2)
π nvme_mi_admin_get_log_page(2) π
okay bestie, so this one lives in the libnvme API manual (section 2, the syscall/system-interface girlies), and it's your go-to for pulling log page data straight off a controller. literally the gossip channel of NVMe. let's get into it β¨
β¨ NAME β¨
nvme_mi_admin_get_log_page β Retrieve log page data from controller π¦
πΈ SYNOPSIS πΈ
int nvme_mi_admin_get_log_page (nvme_mi_ctrl_t ctrl , __u32 xfer_len ,
struct nvme_get_log_args *args );
π ARGUMENTS π
ctrlβ the Controller you're querying π like, which one are we snooping onxfer_lenβ the chunk size of the read π¦ that's how much we grab at a timeargsβ the Get Log Page command arguments, the whole vibe spec of the request
π DESCRIPTION π
So it performs a Get Log Page Admin command exactly as specified by args. fr fr.
The response data gets stored in args->data, which should be a buffer of args->data_len bytes. π And once the command completes successfully, the resulting data length is stored in args->data_len β so that field is lowkey both the input size and the output size, iykyk.
This request may be implemented as multiple log page commands, in order to fit within MI message-size limits. π like it's not even one big ask, it might get chopped up into little pieces so nothing overflows.
See: struct nvme_get_log_args β go read that one, it's giving main character energy π
π RETURN π
The nvme command status if a response was received (see enum nvme_status_field), or -1 with errno set otherwise. periodt.
no cap: if you get-1, go checkerrnoimmediately. don't just stand there bestie π
π«Ά SEE ALSO π«Ά
struct nvme_get_log_args, enum nvme_status_field β the supporting cast, iconic as always β
okay that's the whole page, mwah π this was documented July 2026 as part of the libnvme API manual. go slay your log pages, bestie πβ¨π¦
π¦ 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