libnvme_get_ana_log_atomic(9)
β¨ libnvme_get_ana_log_atomic β¨
okay bestie, welcome to the libnvme API manual β this page is all about libnvme_get_ana_log_atomic(9), and no cap, the name literally tells you the whole vibe: grab the Asymmetric Namespace Access log page, and do it atomically. π¦
π NAME π
libnvme_get_ana_log_atomic β retrieve the Asymmetric Namespace Access log page atomically π
πΈ SYNOPSIS πΈ
int libnvme_get_ana_log_atomic (struct libnvme_transport_handle *hdl ,
bool rae , bool rgo , struct nvme_ana_log *log , __u32 *len , unsigned
int retries );
β¨ ARGUMENTS β¨
hdlβ the transport handle. your main character pointer, your ride-or-die π«Άraeβ whether to retain asynchronous events πrgoβ whether to retrieve ANA groups only, like, no NSIDs at all πlogβ pointer to a buffer that receives the ANA log page πlenβ input: the length of the log page buffer. output: the actual length of the ANA log page. literally a glow-up in both directions β¨retriesβ the maximum number of times to retry on log page changes π
π DESCRIPTION π
See struct nvme_ana_log for the definition of the returned structure. that's the whole section, bestie, it's giving minimal and mysterious π
π₯ RETURN π₯
If it slays: returns 0 and sets *len to the actual log page length β
If it does not slay: returns the nvme command status if a response was received (see enum nvme_status_field) or a negative error code otherwise π
And here's the errno tea, don't skip it:
- Sets
errno = EINVALifretries == 0π« - Sets
errno = EAGAINif it's unable to read the log page atomically becausechgcntchanged during each of the retries attempts π - Sets
errno = ENOSPCif the full log page does not fit in the provided buffer π¦
fr fr check your buffer size before you call this, ENOSPC is not the moment you want to be having πΈ
and that's the page, periodt π this was the libnvme API manual, from October 2026, covering libnvme_get_ana_log_atomic(9) β go forth and read that log page atomically, icon ππ
π¦ 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