From a9f667a41d07e66f8110d38838eb6bf0fcfe7763 Mon Sep 17 00:00:00 2001 From: Tokunori Ikegami Date: Mon, 13 Jan 2025 11:22:22 +0900 Subject: [PATCH] mi: add nvme_mi_admin_get_log_mgmt_addr_list() Since added the NVMe 2.1 log page. Signed-off-by: Tokunori Ikegami --- src/nvme/mi.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/nvme/mi.h b/src/nvme/mi.h index 746ee0fb..3377b73f 100644 --- a/src/nvme/mi.h +++ b/src/nvme/mi.h @@ -2241,6 +2241,21 @@ static inline int nvme_mi_admin_get_log_boot_partition(nvme_mi_ctrl_t ctrl, return nvme_mi_admin_get_log(ctrl, &args); } +/** + * nvme_mi_admin_get_log_mgmt_addr_list() - Retrieve Management Address List Log + * @ctrl: Controller to query + * @len: The allocated length of the log page + * @log: User address to store the log page + * + * Return: The nvme command status if a response was received (see + * &enum nvme_status_field) or -1 with errno set otherwise + */ +static inline int nvme_mi_admin_get_log_mgmt_addr_list(nvme_mi_ctrl_t ctrl, __u32 len, + struct nvme_mgmt_addr_list_log *log) +{ + return nvme_mi_admin_get_log_simple(ctrl, NVME_LOG_LID_MGMT_ADDR_LIST, len, log); +} + /** * nvme_mi_admin_get_log_phy_rx_eom() - Retrieve Physical Interface Receiver Eye Opening Measurement Log * @ctrl: Controller to query