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

Appending and Prepending in Yocto - +=, =+ vs .=, =.

Linux driver example for Per CPU Variable

ARM interview questions