reboot-mode.h 561 B

12345678910111213141516171819
  1. #ifndef __REBOOT_MODE_H__
  2. #define __REBOOT_MODE_H__
  3. struct reboot_mode_driver {
  4. struct device *dev;
  5. struct list_head head;
  6. int (*write)(struct reboot_mode_driver *reboot, unsigned int magic);
  7. struct notifier_block reboot_notifier;
  8. };
  9. int reboot_mode_register(struct reboot_mode_driver *reboot);
  10. int reboot_mode_unregister(struct reboot_mode_driver *reboot);
  11. int devm_reboot_mode_register(struct device *dev,
  12. struct reboot_mode_driver *reboot);
  13. void devm_reboot_mode_unregister(struct device *dev,
  14. struct reboot_mode_driver *reboot);
  15. #endif