@@ -1857,31 +1857,6 @@ nvme_init_get_log_zns_changed_zones(struct nvme_passthru_cmd *cmd,
18571857 log , sizeof (* log ));
18581858}
18591859
1860- /**
1861- * nvme_get_ana_log_atomic() - Retrieve Asymmetric Namespace Access
1862- * log page atomically
1863- * @hdl: Transport handle
1864- * @rae: Whether to retain asynchronous events
1865- * @rgo: Whether to retrieve ANA groups only (no NSIDs)
1866- * @log: Pointer to a buffer to receive the ANA log page
1867- * @len: Input: the length of the log page buffer.
1868- * Output: the actual length of the ANA log page.
1869- * @retries: The maximum number of times to retry on log page changes
1870- *
1871- * See &struct nvme_ana_log for the definition of the returned structure.
1872- *
1873- * Return: If successful, returns 0 and sets *len to the actual log page length.
1874- * If unsuccessful, returns the nvme command status if a response was received
1875- * (see &enum nvme_status_field) or -1 with errno set otherwise.
1876- * Sets errno = EINVAL if retries == 0.
1877- * Sets errno = EAGAIN if unable to read the log page atomically
1878- * because chgcnt changed during each of the retries attempts.
1879- * Sets errno = ENOSPC if the full log page does not fit in the provided buffer.
1880- */
1881- int
1882- nvme_get_ana_log_atomic (struct nvme_transport_handle * hdl , bool rae , bool rgo ,
1883- struct nvme_ana_log * log , __u32 * len , unsigned int retries );
1884-
18851860/**
18861861 * nvme_init_set_features() - Initialize passthru command for
18871862 * Set Features
@@ -5534,6 +5509,31 @@ int nvme_get_new_host_telemetry(struct nvme_transport_handle *hdl,
55345509size_t nvme_get_ana_log_len_from_id_ctrl (const struct nvme_id_ctrl * id_ctrl ,
55355510 bool rgo );
55365511
5512+ /**
5513+ * nvme_get_ana_log_atomic() - Retrieve Asymmetric Namespace Access
5514+ * log page atomically
5515+ * @hdl: Transport handle
5516+ * @rae: Whether to retain asynchronous events
5517+ * @rgo: Whether to retrieve ANA groups only (no NSIDs)
5518+ * @log: Pointer to a buffer to receive the ANA log page
5519+ * @len: Input: the length of the log page buffer.
5520+ * Output: the actual length of the ANA log page.
5521+ * @retries: The maximum number of times to retry on log page changes
5522+ *
5523+ * See &struct nvme_ana_log for the definition of the returned structure.
5524+ *
5525+ * Return: If successful, returns 0 and sets *len to the actual log page length.
5526+ * If unsuccessful, returns the nvme command status if a response was received
5527+ * (see &enum nvme_status_field) or -1 with errno set otherwise.
5528+ * Sets errno = EINVAL if retries == 0.
5529+ * Sets errno = EAGAIN if unable to read the log page atomically
5530+ * because chgcnt changed during each of the retries attempts.
5531+ * Sets errno = ENOSPC if the full log page does not fit in the provided buffer.
5532+ */
5533+ int
5534+ nvme_get_ana_log_atomic (struct nvme_transport_handle * hdl , bool rae , bool rgo ,
5535+ struct nvme_ana_log * log , __u32 * len , unsigned int retries );
5536+
55375537/**
55385538 * nvme_get_ana_log_len() - Retrieve size of the current ANA log
55395539 * @hdl: Transport handle
0 commit comments