Home:ALL Converter>System halt in linux

System halt in linux

Ask Time:2014-05-18T17:50:59         Author:user2975699

Json Formatter

I was looking at reboot.c in the Linux kernel.

http://lxr.free-electrons.com/source/kernel/reboot.c

There is a call to kernel_halt it says that this function will Shutdown everything and perform a clean system halt. What does a clean system halt mean? Can any one explain what this halt actually does? I am also wondering about syscore what kind of operations are considered as syscore operation?

  0 void kernel_halt(void)
    161 {
    162         kernel_shutdown_prepare(SYSTEM_HALT);
    163         migrate_to_reboot_cpu();
    164         syscore_shutdown();
    165         pr_emerg("System halted\n");
    166         kmsg_dump(KMSG_DUMP_HALT);
    167         machine_halt();
    168 }

Author:user2975699,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/23720654/system-halt-in-linux
yy