[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] reboot function
Hi,
So sorry if my expression is not meaninful... ,I want to write a module for watchdog's NMI,it can reboot automatically while my program lose control,so I think I need a device driver module,while NMI interrupt,it can start this module and the module can reboot at once.I think I need to know how to write NMI module and the function of reboot.
Thanks for your response,
Best regard,
Michael
----- Original Message -----
From: "Ish Rattan" <ishwar@pali.cps.cmich.edu>
To: "MAIXY" <maixy@mcm.com.cn>
Cc: "rtl" <rtl@rtlinux.org>
Sent: Thursday, June 21, 2001 10:20 PM
Subject: Re: [rtl] reboot function
> On Thu, 21 Jun 2001, MAIXY wrote:
>
> > Hi,
> > I want to reboot the operating system in my device driver module,if anyone can tell me which function which can reboot the system and it can be used in the linux kernel?
> OS in driver module?
>
> To reboot, at shell level try -- sync; reboot
>
> To unload/remove a module try -- rmmod
>
> hth
>