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 docon...@gsoft.com.au: 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

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 glneolistm...@gmail.com: do you want to sync the disks first? of just hard reset? Why would anyone ever want to do that, you're

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 jul...@freebsd.org: 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

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

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

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 free...@damnhippie.dyndns.org: 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 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

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 jul...@freebsd.org wrote: On 1/22/12 2:19 AM, geoffrey levand wrote: Hi, how would

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 issue