graceful restart from a kernel module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I have a kernel module that needs to restart the system in a way that basically does a "shutdown -r now", because I need the shutdown scripts at level 6 to perform some necessary tasks.  Right now, this code calls panic() which calls emergency_restart() which (at least on my machine) does not allow the shutdown scripts to run.  I've tried calling kernel_restart(), and also tried

 C_A_D = 1;
 ctrl_alt_del();

but in both cases, the system restarted directly in the boot loader.  Any ideas on how to gracefully restart from within the kernel?

thanks in advance,
Frank

 


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux