nvme_init_get_log_ana(9)
π nvme_init_get_log_ana β like, the whole manual, bestie π
okay so this is a page from the libnvme API manual, and it's about nvme_init_get_log_ana β the lil function that sets up your passthru command for Asymmetric Namespace Access. Yes, ANA. It's giving topology-aware realness β¨
πΈ SYNOPSIS πΈ
void nvme_init_get_log_ana (struct libnvme_passthru_cmd *cmd , enum
nvme_log_ana_lsp lsp , __u64 lpo , void *log , __u32 len );
it returns void, so likeβ¦ no return value to obsess over. it just does the thing π«Ά
π ARGUMENTS π
cmdβ the passthru command you're gonna use. this is the one getting filled in, so hand it over πlspβ the log specific bits, and fr fr you should checkenum nvme_get_log_ana_lspfor the deetslpoβ offset to the start of the log page. it's a__u64, so it goes hard πlogβ your user address where the ana log gets stored. that's yourvoid *, bestie π¦lenβ the allocated length of the log page. a__u32, no cap π
β¨ DESCRIPTION β¨
so basically this initializes the passthru command buffer for the Get Log command, and it does it with LID value NVME_LOG_LID_ANA. that's it, that's the vibe check β iconic, clean, no notes π
ngl the whole point is just prepping that buffer, but if you skip it nothing's gonna slay. set it up first, then fire your command π§
and that's the page!! it came from the libnvme API manual, dated October 2026, and it's literally titled nvme_init_get_log_ana(9) β same as the function, periodt π
β
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms