Re: Re: How to catch a signal in kernel module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sir,

I have to call a kernel mode function. actually i have developed my protocol in kernel mode. i m inserting a modeule through which my protocol starts. I am not getting the idea of calling my function from powerfail script.

pl help me. by giving a small example.

Thanks

Nivedan Nigam

On Sat, 28 May 2005 Bob Bennett wrote :
>
>Isn't SIGPWR only sent to init?  The proper thing to do as far as I know
>would be to update the /etc/init.d/powerfail script to call a user mode
>program that will broadcast the packet.  You shouldn't need to do that
> from a kernel module.
>
>Hope that helps,
>      Bob Bennett


>>On Fri, 2005-05-27 at 08:37, Nivedan Nigam wrote:
> >
> > Hi all,
> >
> > i have written a kernel module to implement a new routing protocol. it is working fine. i am facing a small problem in catching signal in my module.
> >
> > Actually i have to catch SIGPWR signal in my module, so that if this  signal triggers then i'll get to know that POWER is gone and i hv to broadcast a CONTROL PACKET in the network..

> > my problem is, how to catch the signal and process it. i want to call a routine node_status_change(.....) when SIGPWR triggers...
> > can anybody will help me to come out from this problem....
> >
> > ne suggestion is welcome
> >
> > Thanx in advance
> >
> > Nivedan Nigam
> > MTech CSE
> > IIT Guwahati
> > India
> >
> >
> >
> >
> >
>




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux