Implemented function level reset.
Implementation is:
Make sure we are root (otherwise, return insufficient permissions)
Make sure no one has the device open
(otherwise, return hande object in use)
Close our file handle
Unbind the device from the kernel driver
Make sure no one still has the device open
(otherwise, kill them)
Perform function level reset (FLR)
Rebind the device to the kernel driver
Change-Id: Ic57b95487e73b5a5f2d03e619d813bf4199adf40
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
Do not abort during class destruction of the metrics query
Change-Id: If7caca14944f176bf082e0325a96d84cde111fd1
Signed-off-by: Matias Cabral <matias.a.cabral@intel.com>
Sysman API for device properties will report unknown driver
version to avoid spawning new process in the system
Change-Id: I4edde9d9670773e339125c71bae6947575789a19
Signed-off-by: Matias Cabral <matias.a.cabral@intel.com>