AW: Send Signal to application from kernel module

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

 



I just want to signal the user application that a timer
interrupt has been generated by the module. I.e. the module
creates timer interrupts on every x seconds, and I have to
signal this somehow to the user application ...


-----Ursprüngliche Nachricht-----
Von: Gagneraud Christian [mailto:chgans@tuxfamily.org] 
Gesendet: Dienstag, 25. November 2003 18:41
An: kernelnewbies@nl.linux.org
Cc: Juergen Oberhofer
Betreff: Re: Send Signal to application from kernel module

Le mar 25/11/2003 à 15:44, Juergen Oberhofer a écrit :
> hm the thing is, that the module doesn't know the pid of the user
process...
> I would need a function, equivalent to the 
> int kill(pid_t pid, int sig);
> function, defined in signal.h. Because by setting pid = -1 the signal
is
> sent to
> every process except for process 1.
> Does there exist such a function for the kernel space? If not, does
somebody
> know what other possibilities do I have?
> regards
> juergen
Hi,

You must at least know something useful about the process! (PID /
task_struct), what is the criter of selection for the process you want
to kill()? Does it had opened a device you'he wrote the module?

Chris
> 
> 
> > hi,
> >   you can try 
> >    kill_proc(pid,SIGUSR1,1);
> > thx
> > --rahul
> > 
> > On Tue, 2003-11-25 at 19:18, Juergen Oberhofer wrote:
> > > Hi,
> > > is there a function to send a SIGUSR1 signal from a kernel module
to a
> > > program which
> > > runs in user space?
> > > Regards
> > > Juergen
-- 
@+
Christian
--
Christian Gagneraud <chgans AT tuxfamily DOT org>
WISIRC <http://wisirc.tuxfamily.org>


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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