Restart and shutdown from Linux Kernel Driver

Linux kernel provides functions which allows us to restart or shutdown from the kernel driver.

Header File: <linux/reboot.h>

kernel_power_off -> To shutdown
kernel_restart(char *msg) -> To restart the system


Comments