Re: hi,how to send a signal from kernel module to a application.
- From: "space6" <ispacex@xxxxxxxxx>
- Date: 30 Dec 2005 00:41:29 -0800
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
.
- References:
- Re: hi,how to send a signal from kernel module to a application.
- From: nagual . hsu
- Re: hi,how to send a signal from kernel module to a application.
- From: pratap
- Re: hi,how to send a signal from kernel module to a application.
- Prev by Date: Use of alternate stack for signal handler
- Next by Date: Re: to enable C or C++ syntax highlighting in Vi Editor
- Previous by thread: Re: hi,how to send a signal from kernel module to a application.
- Next by thread: I/O priority
- Index(es):
Relevant Pages
|