Re: hi,how to send a signal from kernel module to a application.



Hi,I am busy these days.

You can just send a signal in kernel as following format:
send_sig(SIGxx,task,0);

and in your application,you should call signal(SIGxx,handler) or
sigaction
to register a signal handler to handle the signal which your kernel
send.

And the task ,your should not use current,your should pass the process
id
by call getpid() from use space and send it to kernel by ioctl.
And in your kernel ,you should get the called process's task struct by
call
find_task_by_pid();

But unfortunatly,you kernel mght panic when sending a signal to the
task.
You should change your mind.

Good luck.

pratap wrote:
> hi say88, iam also facing the same problem here,can u plzz help me out
> by sending me some detailed information. plz mail me at
> pratapnaidums@xxxxxxxxxxx
>
> Thanks in Advance
>
>
> regards,
>
> pratap

.



Relevant Pages

  • powerpc: Add flattened device tree documentation
    ... The flattened device tree is the only supported way of booting ... +order to avoid the degeneration that had become the ppc32 kernel entry ... +the presence of a device-tree whose format is defined after Open ... + present if the processor is a SOC. ...
    (Linux-Kernel)
  • Re: perfmon2 merge news
    ... The kernel emulates 64-bit counters in software and that is you ... you're done recording you need to re-arm the sampling period. ... custom sampling format to support that, ...
    (Linux-Kernel)
  • Re: [PATCH] cpumask 5/10 rewrite cpumask.h - single bitmap based implementation
    ... >> likewise for whatever else is copying unsigned long arrays to userspace. ... The kernel bitmaps/cpumasks are arrays ... > I presume that it is too late to change the low level format of masks ... since it seems the perfctr stuff Mikael Pettersson ...
    (Linux-Kernel)
  • Re: perfmon2 merge news
    ... The kernel emulates 64-bit counters in software and that is you ... format which has been sufficient for our needs. ... This is also how we support PEBS because, as you said, the format of the ...
    (Linux-Kernel)
  • Re: [PATCH] cpumask 5/10 rewrite cpumask.h - single bitmap based implementation
    ... >> copying up masks to user space as length specified arrays of uint. ... > likewise for whatever else is copying unsigned long arrays to userspace. ... The kernel bitmaps/cpumasks are arrays ... I presume that it is too late to change the low level format of masks ...
    (Linux-Kernel)