]> www.infradead.org Git - users/sagi/libnvme.git/commit
mi: Add nvme_mi_ctrl_id to retrieve controller ID
authorJeremy Kerr <jk@codeconstruct.com.au>
Thu, 27 Apr 2023 07:07:46 +0000 (15:07 +0800)
committerDaniel Wagner <wagi@monom.org>
Thu, 27 Apr 2023 13:15:39 +0000 (15:15 +0200)
commiteaa7ad4eb2247075d179e51bd457aecec2dfd955
tree794744248170c9194ff12013399bce06628d2d1b
parent29a37561c1639514d79a33aedaddf27edd8d2a4c
mi: Add nvme_mi_ctrl_id to retrieve controller ID

Controllers may be scanned through nvme_mi_scan_ep, in which case the
caller will not have access to the underlying controller IDs.

Add an accessor function to retrieve the controller ID for use in
subsequent commands (like namespace attach).

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
src/libnvme-mi.map
src/nvme/mi.c
src/nvme/mi.h