MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / new

Method new

pci/src/vfio.rs:446–448  ·  view source on GitHub ↗
(device: Arc<VfioDevice>)

Source from the content-addressed store, hash-verified

444
445impl VfioDeviceWrapper {
446 fn new(device: Arc<VfioDevice>) -> Self {
447 Self { device }
448 }
449}
450
451impl Vfio for VfioDeviceWrapper {

Callers

nothing calls this directly

Calls 9

state_from_idFunction · 0.85
newFunction · 0.85
snapshot_from_idFunction · 0.85
to_stateMethod · 0.80
parse_capabilitiesMethod · 0.80
mapMethod · 0.45
set_stateMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected