1 /* SPDX-License-Identifier: GPL-2.0 */ << 2 #ifndef __REBOOT_MODE_H__ 1 #ifndef __REBOOT_MODE_H__ 3 #define __REBOOT_MODE_H__ 2 #define __REBOOT_MODE_H__ 4 3 5 struct reboot_mode_driver { 4 struct reboot_mode_driver { 6 struct device *dev; 5 struct device *dev; 7 struct list_head head; 6 struct list_head head; 8 int (*write)(struct reboot_mode_driver 7 int (*write)(struct reboot_mode_driver *reboot, unsigned int magic); 9 struct notifier_block reboot_notifier; 8 struct notifier_block reboot_notifier; 10 }; 9 }; 11 10 12 int reboot_mode_register(struct reboot_mode_dr 11 int reboot_mode_register(struct reboot_mode_driver *reboot); 13 int reboot_mode_unregister(struct reboot_mode_ 12 int reboot_mode_unregister(struct reboot_mode_driver *reboot); 14 int devm_reboot_mode_register(struct device *d 13 int devm_reboot_mode_register(struct device *dev, 15 struct reboot_mo 14 struct reboot_mode_driver *reboot); 16 void devm_reboot_mode_unregister(struct device 15 void devm_reboot_mode_unregister(struct device *dev, 17 struct reboot 16 struct reboot_mode_driver *reboot); 18 17 19 #endif 18 #endif 20 19
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.