Remove a specific vendor:device key from the global refcount map. Used by tests to clean up their own entries without disturbing parallel tests that hold refcounts for different device IDs.
(id: &str)
| 333 | /// Used by tests to clean up their own entries without disturbing |
| 334 | /// parallel tests that hold refcounts for different device IDs. |
| 335 | pub fn clear(id: &str) { |
| 336 | VFIO_ID_REGISTRY.lock().unwrap().remove(id); |
| 337 | } |
| 338 | } |
| 339 | |
| 340 | #[cfg(test)] |