+34
−34
Loading
This patch adds nvme_cuse_get_cuse_ctrlr_device() and nvme_cuse_get_cuse_ns_device that returns struct cuse_device of a given nvme controller or namespace. Similar iteration was used in two places so they were replaced accordingly. Next patch will add third. Signed-off-by:Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I25ada843a59c632fe330263a65456d25c5ccf4cc Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1918 Community-CI: Mellanox Build Bot Community-CI: Broadcom CI Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>