Pierre Cloutier <[EMAIL PROTECTED]> wrote:
>
> Is it possible for a RTLinux task to send an asynchronous signal to a
> linux program running in user space?
> If it has been done, is there sample code available?
>
You may also want to try the kernel function kill_proc that roughly corresponds
to kill(2). Actually I did not use it in an RT task but I expect it to work.
I used kill_proc to send a signal from a driver (i.e. kernel space) to a Linux
process. It works and looks like:
if(kill_proc(pid,signal,0)<0)
printk("kill_proc failed\n");
where pid and signal are the same as in kill(2). I don't remember what I
found out about the 3rd parameter.
Please drop us a line+source how have you solved your problem.
Regards,
pa
..........................................................................
Pavel Andris | tel: +421 7 5941 2167
Institute of Control Theory and Robotics | fax: +421 7 376 045
Slovak Academy of Sciences |
Dubravska cesta 9 | e-mail: [EMAIL PROTECTED]
Slovakia |
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/