MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / insert

Method insert

pci/src/main.rs:67–71  ·  view source on GitHub ↗
(&mut self, device: Device)

Source from the content-addressed store, hash-verified

65 }
66
67 fn insert(&mut self, device: Device) {
68 self.devices.insert(format!("{:04X}_{:04X}",
69 device.vendor_id, device.device_id),
70 Arc::new(RwLock::new(device)));
71 }
72
73 fn find(&self, vendor_id: u16, device_id:u16) -> Option<PciLocation> {
74 println!("[pci] Finding device [{:04X}:{:04X}]",

Callers 5

mainFunction · 0.80
make_dirMethod · 0.80
make_fileMethod · 0.80
resolveFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected