Urgent interrupt thread

Ninad Adi adi.ninad at gmail.com
Fri Aug 12 08:59:19 UTC 2011


Thanks for your prompt replies sir,
just one more clarification

the routine bus_setup_intr has 5th arg of
type driver_intr_t ithread then if I am not
wrong my isr is running as a thread, probably
thats the reason why latest drivers dont use
Deferring mechanism like iwi, iwn, ral. However
Atheros is still using taskqueues which is considerably old I suppose.
So using filter+ithread model without deferring
Should be fine.
Plz let me know your opinions on the same,
It would help me understand freebsd better.
Will not disturb you more.
Awaiting,reply

Thanks a lot,
Ninad Adi.





On Friday, August 12, 2011, Julian Elischer <julian at freebsd.org> wrote:
> On 8/12/11 12:45 AM, Ninad Adi wrote:
>
> So in the routine bus_setup_intr the isr runs as
> ithread but then if its a thread why its not allowed to sleep it aquires
mutex lock , disables
> all interrupts and  continues.
>
>
> if it  is running as an ithread it can do those things.
> if it is running as a fast interrupt handler it can't.
> the driver sets how the code is to be run
>
>
>
> My last question is in that case do we need to
> Use taskqueues or we can completely write the
> Isr in one thread itself without using deferring
> Primitives. I.e can we refrain from using deferring mechanism.
>
> if you use an ithread you can do what you want..
>
> http://www.unix.com/man-page/FreeBSD/9/ithread/
>
>
>
>
> awaiting the reply.
>
> Ninad Adi.
>
>
> On Friday, August 12, 2011, Julian Elischer <julian at freebsd.org> wrote:
>> On 8/11/11 3:13 AM, Ninad Adi wrote:
>>>
>>> To,
>>> Freebsd greats,
>>>
>>> Dear sirs,
>>> In freebsd 8.2 kernel architecture
>>> Do interrupt handlers run as threads by
>>> default or do they run in interrupt context ??
>>>
>>> Ninad.
>>> Freebsd developer.
>>> _______________________________________________
>>> freebsd-threads at freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-threads <
http://lists.freebsd.org/mailman/listinfo/freebsd-threads>
>>> To unsubscribe, send any mail to "
freebsd-threads-unsubscribe at freebsd.org"
>>>
>> you have the choice to do either.
>>
>>
>> key words to look up are 'fast' interrupts and "interrrupt threads"
>>
>> I've not used either for many years. so I hope that helps enough that you
can find hte right answer.
>>
>>
>>
>>
>


More information about the freebsd-threads mailing list