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

Method notify_power_button

vmm/src/device_manager.rs:5184–5192  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

5182
5183 #[cfg(target_arch = "x86_64")]
5184 pub fn notify_power_button(&self) -> DeviceManagerResult<()> {
5185 self.ged_notification_device
5186 .as_ref()
5187 .unwrap()
5188 .lock()
5189 .unwrap()
5190 .notify(AcpiNotificationFlags::POWER_BUTTON_CHANGED)
5191 .map_err(DeviceManagerError::PowerButtonNotification)
5192 }
5193
5194 #[cfg(target_arch = "aarch64")]
5195 pub fn notify_power_button(&self) -> DeviceManagerResult<()> {

Callers 1

power_buttonMethod · 0.80

Calls 2

trigger_keyMethod · 0.80
notifyMethod · 0.45

Tested by

no test coverage detected