]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - include/linux/reboot-mode.h
fs: prevent speculative execution
[mirror_ubuntu-artful-kernel.git] / include / linux / reboot-mode.h
1 #ifndef __REBOOT_MODE_H__
2 #define __REBOOT_MODE_H__
3
4 struct reboot_mode_driver {
5 struct device *dev;
6 struct list_head head;
7 int (*write)(struct reboot_mode_driver *reboot, unsigned int magic);
8 struct notifier_block reboot_notifier;
9 };
10
11 int reboot_mode_register(struct reboot_mode_driver *reboot);
12 int reboot_mode_unregister(struct reboot_mode_driver *reboot);
13 int devm_reboot_mode_register(struct device *dev,
14 struct reboot_mode_driver *reboot);
15 void devm_reboot_mode_unregister(struct device *dev,
16 struct reboot_mode_driver *reboot);
17
18 #endif