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

Method new_armed

crates/openshell-vfio/src/pci.rs:106–119  ·  view source on GitHub ↗
(
        bdf: String,
        companion_bdfs: Vec<String>,
        sysfs: SysfsRoot,
        vfio_id: Option<String>,
    )

Source from the content-addressed store, hash-verified

104 }
105
106 pub(crate) fn new_armed(
107 bdf: String,
108 companion_bdfs: Vec<String>,
109 sysfs: SysfsRoot,
110 vfio_id: Option<String>,
111 ) -> Self {
112 Self {
113 bdf,
114 companion_bdfs,
115 sysfs,
116 disarmed: false,
117 vfio_id,
118 }
119 }
120
121 /// Deregister the cached vfio-pci match-table entry, then restore the
122 /// device to its host driver.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected