KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I would like to be confirmed that kernel's panic() function and the others like kernel_halt() and machine_halt() , once triggered, guarantee complete freezing of the machine. So, are all the kernel and user processes frozen? Is panic() interruptible by the scheduler? The interrupt handlers could still be executed? Use case: in case of serious error, I need to be sure that the hardware watchdog resets the machine. To this end, I need to make sure that no other thread/process is keeping the watchdog alive. I need to trigger a complete halt of the system. Currently, inside my kernel module, I simply call panic() to freeze everything. Also, the user-space halt command is guaranteed to freeze the system? Thanks. edit: According to: http://linux.die.net/man/2/reboot , I think the best way is to use reboot(LINUX_REBOOT_CMD_HALT) : "Control is given to the ROM monitor, if there is one"
Tags (comma-separated)
Save Edits
Cancel