nvme_mi_admin_get_log_ana(2)
π nvme_mi_admin_get_log_ana π
okay bestie, so this is a page straight out of the libnvme API manual, and it's giving "go ask your controller about its ANA drama" energy. let's get into it π¦
β¨ NAME β¨
nvme_mi_admin_get_log_ana β Retrieve Asymmetric Namespace Access log page
like, it grabs the ANA log page. that's the whole vibe. periodt. π
πΈ SYNOPSIS πΈ
int nvme_mi_admin_get_log_ana (nvme_mi_ctrl_t ctrl , enum
nvme_log_ana_lsp lsp , bool rae , __u64 offset , __u32 len , void *log
);
she takes five-ish things and hands you back an int. we love a low-maintenance queen. π
π ARGUMENTS π
ctrlβ the Controller you're querying. this is the bestie you're gossiping with. π¬lspβ Log specific. go checkenum nvme_get_log_ana_lspfor what you can put here. iykyk. β¨raeβ Retain asynchronous events. it's abool, so it's a yes-or-no situation, no in-between. πoffsetβ Offset to the start of the log page. where in the log you're starting. it's a__u64. π’lenβ The allocated length of the log page. how much room you set aside. it's a__u32. πlogβ User address to store the ana log. this is where the goods land. avoid *, so mind your casting, bestie. π«Ά
π DESCRIPTION π
so this log is literally two things stitched together, and honestly? iconic.
first, there's a header describing the log. second, there's a bunch of descriptors holding the asymmetric namespace access information for ANA Groups that contain namespaces attached to the controller processing the command. like, only the groups relevant to this controller. no extra tea. π΅
if you wanna know the exact shape of what comes back, go look at struct nvme_ana_log for the definition of the returned structure. no cap, that's where the receipts live. π
π₯ RETURN π₯
you get the nvme command status if a response was received β peep enum nvme_status_field for all the possibilities π β or -1 with errno set otherwise. so if it's a -1, check errno, don't just stare at it. π
reminder that this is the whole manual, no skipping sections, no skimming. every flag, every detail, every vibe. ate and left no crumbs. π β¨
and that's the page!! this lil slice of the libnvme API manual was dated July 2026 β yes, from the future, main character energy fr fr π β and you've officially finished reading nvme_mi_admin_get_log_ana(2). go off, 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