tree: 3884ce4b2113d3531edb4b6fa8c3a8781a557e0a [path history] [tgz]
  1. meta/
  2. src/
  3. tests/
  4. BUILD.gn
  5. README.md
src/power/shutdown-shim/README.md

shutdown-shim

shutdown-shim is load-bearing piece of system-wide shutdown and reboot procedures. All components that start a reboot or shutdown do so by talking to shutdown-shim via fuchsia.hardware.power.statecontrol.Admin.

shutdown-shim does the following:

  • It implements fuchsia.hardware.power.statecontrol.Admin, allowing components to start a reboot or shutdown.
  • It alerts components of an impending reboot if they have registered their interest via fuchsia.hardware.power.statecontrol.RebootMethodsWatcherRegister.
  • It prevents suspension during the shutdown process.
  • It eliminates a dependency cycle between drivers and power-manager by implementing fuchsia.system.state.SystemStateTransition.