MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / clear

Function clear

crates/openshell-vfio/src/bind.rs:335–337  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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)]

Calls 1

removeMethod · 0.45