Results 1 to 3 of 3
Hi,
I am writing a kernel driver for a special device. In such situation I have to write message to syslog printk(KERN_ERR ... and do a correct restart of the ...
- 07-04-2006 #1Just Joined!
- Join Date
- Jul 2006
- Posts
- 2
How to restart linux correctly.
Hi,
I am writing a kernel driver for a special device. In such situation I have to write message to syslog printk(KERN_ERR ... and do a correct restart of the system.
I tried kernel_restart(NULL) but it does immediate unconditional restart - message is lost.
Any suggestion?
Thanx for help.
- 07-09-2006 #2
Use a timeout before restart.
You can use utime and maybe if the error is not critical, schedule_timeout.
Best regards
- 07-11-2006 #3Just Joined!
- Join Date
- Jul 2006
- Posts
- 2
Hi,
I solved my problem by sending request to user space. And there can be run "reboot" command.
Thanks.


Reply With Quote
