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

Method power_button

vmm/src/vm.rs:3104–3111  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

3102
3103 #[cfg(target_arch = "x86_64")]
3104 pub fn power_button(&self) -> Result<()> {
3105 return self
3106 .device_manager
3107 .lock()
3108 .unwrap()
3109 .notify_power_button()
3110 .map_err(Error::PowerButton);
3111 }
3112
3113 #[cfg(target_arch = "aarch64")]
3114 pub fn power_button(&self) -> Result<()> {

Callers 1

vm_power_buttonMethod · 0.80

Calls 1

notify_power_buttonMethod · 0.80

Tested by

no test coverage detected