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

PR, PN and PV Variable in Yocto