logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

nvme_mi_admin_get_ana_log_atomic - Retrieve Asymmetric Namespace Access log page atomically

Arguments

ctrl Controller to query rgo Whether to retrieve ANA groups only (no NSIDs) rae Whether to retain asynchronous events retries The maximum number of times to retry on log page changes log Pointer to a buffer to receive the ANA log page len Input: the length of the log page buffer. Output: the actual length of the ANA log page.

Description

See structnvme_ana_log for the definition of the returned structure.

Name

nvme_mi_admin_get_ana_log_atomic - Retrieve Asymmetric Namespace Access log page atomically

Return

If successful, returns 0 and sets *len to the actual log page length. If unsuccessful, returns the nvme command status if a response was received (see enumnvme_status_field) or -1 with errno set otherwise. Sets errno = EINVAL if retries == 0. Sets errno = EAGAIN if unable to read the log page atomically because chgcnt changed during each of the retries attempts. Sets errno = ENOSPC if the full log page does not fit in the provided buffer. May 2025 nvme_mi_admin_get_ana_log_atomic nvme_mi_admin_get_ana_log_atomic(2)

Synopsis

intnvme_mi_admin_get_ana_log_atomic(nvme_mi_ctrl_tctrl,boolrgo,boolrae,unsignedintretries,structnvme_ana_log*log,__u32*len);

See Also