Aleksandar Bakic wrote:
>
> OK; is rt_free_global() potentially dangerous (in case there's nothing
> to free)?
Don't think so ... it will normally return negative value as failure.
> Should I enable the interrupt just once, immediately after the call to
> rt_request_global_irq(), or in the handler, immediately before calling
> rt_pend_linux_irq()?
>
I've made all my drivers with only one rt_enable_irq just after the
irq attaching and I've not seen any problem.
But you can rt_disable_irq in the begining of your irq handler then
rt_enable_irq at the end.
rt_pend_linux_irq() does not need rt_enable_irq if it hasn't been
disabled.
Chris.
--
Kumsta Christophe
<[EMAIL PROTECTED]>
Real-Time System developper
RT-Linux/RTAI ( Use the Source Luck !)
--- [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/