Re[2]: Rebooting/Halting system from kernel module

2012-01-23 Thread geoffrey levand
No, no hard reset but graceful shutdown/reboot. regards 23 января 2012, 06:31 от Julian Elischer : > On 1/22/12 2:19 AM, geoffrey levand wrote: > > Hi, > > > > how would i reboot/halt the system from a kernel module ? > > the answer is "that depends".. > > do you want to sync the disks first?

Re[2]: Rebooting/Halting system from kernel module

2012-01-23 Thread geoffrey levand
I'm implementing power button functionality on PS3. I want FreeBSD to shutdown when i press the button like on Linux. regards 23 января 2012, 07:26 от Andrew Davis : > >do you want to sync the disks first? of just hard reset? > > Why would anyone ever want to do that, you're a kernel mod, if yo

Re[2]: Rebooting/Halting system from kernel module

2012-01-23 Thread geoffrey levand
Thanks for the example. regards 23 января 2012, 09:41 от "Daniel O'Connor" : > > On 23/01/2012, at 13:33, Andrew Davis wrote: > > >> do you want to sync the disks first? of just hard reset? > > > > Why would anyone ever want to do that, you're a kernel mod, if you want to > > do that just trip

Re: Rebooting/Halting system from kernel module

2012-01-22 Thread Daniel O'Connor
On 23/01/2012, at 13:33, Andrew Davis wrote: >> do you want to sync the disks first? of just hard reset? > > Why would anyone ever want to do that, you're a kernel mod, if you want to > do that just triple-fault. You can call cpu_reset(). I wrote a KLD which did this because we had a driver is

Re: Rebooting/Halting system from kernel module

2012-01-22 Thread Andrew Davis
>do you want to sync the disks first? of just hard reset? Why would anyone ever want to do that, you're a kernel mod, if you want to do that just triple-fault. On Sun, Jan 22, 2012 at 9:32 PM, Julian Elischer wrote: > On 1/22/12 2:19 AM, geoffrey levand wrote: > >> Hi, >> >> how would i reboot/

Re: Rebooting/Halting system from kernel module

2012-01-22 Thread Julian Elischer
On 1/22/12 2:19 AM, geoffrey levand wrote: Hi, how would i reboot/halt the system from a kernel module ? the answer is "that depends".. do you want to sync the disks first? of just hard reset? ___ freebsd-hackers@freebsd.org mailing list http://li

Re[2]: Rebooting/Halting system from kernel module

2012-01-22 Thread geoffrey levand
Thanks. shutdown_nice is working great. regards 22 января 2012, 21:07 от Ian Lepore : > On Sun, 2012-01-22 at 14:19 +0400, geoffrey levand wrote: > > Hi, > > > > how would i reboot/halt the system from a kernel module ? > > > > regards > > > > -- > > Почта@Mail.Ru в твоем мобильном! > > Просто

Re: Rebooting/Halting system from kernel module

2012-01-22 Thread Ian Lepore
On Sun, 2012-01-22 at 14:19 +0400, geoffrey levand wrote: > Hi, > > how would i reboot/halt the system from a kernel module ? > > regards > > -- > Почта@Mail.Ru в твоем мобильном! > Просто зайди с телефона на m.mail.ru There is an undocumented (at least in terms of a manpage) function named shu

Rebooting/Halting system from kernel module

2012-01-22 Thread geoffrey levand
Hi, how would i reboot/halt the system from a kernel module ? regards -- Почта@Mail.Ru в твоем мобильном! Просто зайди с телефона на m.mail.ru___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To uns