Re: Device driver question

jw schultz (jw@pegasys.ws)
Wed, 15 May 2002 17:18:06 -0700


On Wed, May 15, 2002 at 09:17:21AM -0400, Bloch, Jack wrote:
> I am relatively new to Linux (< 6 months). We have designed an embedded
> system (on compact PCI) running on a Pentium III 700Mhz cPCI machine. This
> machine supports upt to 6 cPCI boards for specific functions (this is our
> own HW). I have already written the device drivers for these boards and the
> system is running. I have a specific case where our HW can generate a
> special interrupt. In this case I simply want the ISR to halt the system
> (i.e. take the same action as if I typed halt from the command line). How
> can I from within my device driver cause a halt? Please CC me specifically
> on any replies.
>
> Thanks in advance.

I am assuming you are running more than just the kernel.
You could just post a signal to init (pid 1).
SIGINT would be a top candidate.

Take a look at powerd, init and inittab.

-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw@pegasys.ws

Remember Cernan and Schmitt - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/