Skip to content

Commit a9f667a

Browse files
ikegami-tigaw
authored andcommitted
mi: add nvme_mi_admin_get_log_mgmt_addr_list()
Since added the NVMe 2.1 log page. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent 531bfdb commit a9f667a

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/nvme/mi.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,6 +2241,21 @@ static inline int nvme_mi_admin_get_log_boot_partition(nvme_mi_ctrl_t ctrl,
22412241
return nvme_mi_admin_get_log(ctrl, &args);
22422242
}
22432243

2244+
/**
2245+
* nvme_mi_admin_get_log_mgmt_addr_list() - Retrieve Management Address List Log
2246+
* @ctrl: Controller to query
2247+
* @len: The allocated length of the log page
2248+
* @log: User address to store the log page
2249+
*
2250+
* Return: The nvme command status if a response was received (see
2251+
* &enum nvme_status_field) or -1 with errno set otherwise
2252+
*/
2253+
static inline int nvme_mi_admin_get_log_mgmt_addr_list(nvme_mi_ctrl_t ctrl, __u32 len,
2254+
struct nvme_mgmt_addr_list_log *log)
2255+
{
2256+
return nvme_mi_admin_get_log_simple(ctrl, NVME_LOG_LID_MGMT_ADDR_LIST, len, log);
2257+
}
2258+
22442259
/**
22452260
* nvme_mi_admin_get_log_phy_rx_eom() - Retrieve Physical Interface Receiver Eye Opening Measurement Log
22462261
* @ctrl: Controller to query

0 commit comments

Comments
 (0)