nvme_mi_admin_get_ana_log_atomic
Retrieve Asymmetric Namespace Access log page atomically
- Provided by: libnvme-dev (Version: 1.15-2)
- Source: libnvme
- Report a bug
Retrieve Asymmetric Namespace Access log page atomically
int nvme_mi_admin_get_ana_log_atomic (nvme_mi_ctrl_t ctrl , bool rgo , bool rae , unsigned int retries , struct nvme_ana_log *log , __u32 *len );
See struct nvme_ana_log for the definition of the returned structure.
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 enum nvme_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.