]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: Introduce nvme_cli_ wrappers, wrap identify and identify_ctrl
authorJeremy Kerr <jk@codeconstruct.com.au>
Thu, 14 Jul 2022 05:59:46 +0000 (13:59 +0800)
committerDaniel Wagner <dwagner@suse.de>
Fri, 12 Aug 2022 06:53:28 +0000 (08:53 +0200)
commitf8e1b24c0c8194a025ebe68e4517abc923ce3599
tree67f85fb521233905d767c6f7489c6db3a873e194
parent317a6bd54db343accf3766019a9c12585c04cb40
nvme: Introduce nvme_cli_ wrappers, wrap identify and identify_ctrl

This change introduces the first of the libnvme wrapper functions. These
have a nvme_cli_ prefix, and wrap the correspondingly-named libnvme
function.

This allows us to call the correct libnvme transport-specific function,
depending on whether this is a direct or MI device.

This requires an update to a more recent libnvme, for the mi version of
the identify functions.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
meson.build
nvme-wrap.c [new file with mode: 0644]
nvme-wrap.h [new file with mode: 0644]
nvme.c