3178ad6476
This allows users of this interface to then close the fd when they want to release the claim. This prepares for calling spdk_pci_device_claim() in the nvme driver to cover not just the bdev_nvme driver but all of our nvme example and test applications as well. We'll want the fd returned so that we can properly close it during detach (including hotplug) use cases. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I8b149cc4e778ba31c0e7045b858c8a1561b6b7af Reviewed-on: https://review.gerrithub.io/385523 Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>