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

Method notify_hotplug

vmm/src/device_manager.rs:4612–4624  ·  view source on GitHub ↗
(
        &self,
        _notification_type: AcpiNotificationFlags,
    )

Source from the content-addressed store, hash-verified

4610 }
4611
4612 pub fn notify_hotplug(
4613 &self,
4614 _notification_type: AcpiNotificationFlags,
4615 ) -> DeviceManagerResult<()> {
4616 return self
4617 .ged_notification_device
4618 .as_ref()
4619 .unwrap()
4620 .lock()
4621 .unwrap()
4622 .notify(_notification_type)
4623 .map_err(DeviceManagerError::HotPlugNotification);
4624 }
4625
4626 pub fn add_device(
4627 &mut self,

Callers 11

resizeMethod · 0.80
add_deviceMethod · 0.80
add_user_deviceMethod · 0.80
remove_deviceMethod · 0.80
add_diskMethod · 0.80
add_fsMethod · 0.80
add_pmemMethod · 0.80
add_netMethod · 0.80
add_vdpaMethod · 0.80
add_vsockMethod · 0.80

Calls 1

notifyMethod · 0.45

Tested by

no test coverage detected