Spdk/test/lib
Jim Harris 3178ad6476 env: return fd from spdk_pci_device_claim()
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>
2017-11-03 18:48:33 -04:00
..
bdev test/bdev: wait for nbd device to become ready 2017-11-03 15:28:26 -04:00
blobfs blob_bdev: hotremove support 2017-09-28 12:46:18 -04:00
env env: return fd from spdk_pci_device_claim() 2017-11-03 18:48:33 -04:00
event test/event_perf: fix spdk_app_stop() condition 2017-11-03 16:49:38 -04:00
ioat test: move IOAT library unit test to test/unit 2017-06-21 18:57:35 -04:00
json test: move JSON library unit tests to test/unit 2017-06-20 13:46:07 -04:00
nvme test/nvme: Add perf with AIO devices 2017-11-01 19:46:24 -04:00
Makefile test: move iSCSI unit tests to test/unit 2017-06-28 13:10:27 -04:00
test_env.c test: flesh out test_env implementation for mempools 2017-09-20 19:27:06 -04:00
ut_multithread.c test: add framework for simulating multithreading in unit tests 2017-09-20 19:27:06 -04:00