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

Popular posts from this blog

bb.utils.contains yocto

Difference between RDEPENDS and DEPENDS in Yocto

make config vs oldconfig vs defconfig vs menuconfig vs savedefconfig