Re: Looking for comments on Bottom-Half/Tasklet/SoftIRQ

From: chuckw@ieee.org
Date: Sun Aug 19 2001 - 05:57:02 EST


Many thanks once again.

Chuck

On Sun, Aug 19, 2001 at 09:01:13PM +0200, Anders Peter Fugmann wrote:
> chuckw@ieee.org wrote:
> > Thanks
> >
> > So, Bottom halves don't need to be re-entrant as do tasklets. SoftIRQ's
> > need to be re-entrant. The advantage of tasklets is that each tasklet can
> > be farmed out to different CPU's AND they don't need to be re-entrant
> > because only one instance is allowed at a time. I think I got it.
>
> That is 100% correct.
>
> >
> > Could you direct me to some code in the kernel which uses tasklets
> > so I can see the inner workings?
>
> Actually very few systems in the kernel has been rewritten to use
> tasklets instead og BH's.
>
> But as they are very simillar to BH's, you should be able to use the
> same thinking, its just a new API.
>
> Take a look at include/linux/interrupt.h
> (or http://lxr.linux.no/source/include/linux/interrupt.h, an invaluable
> source when coding for linux).
>
> Regards
> Anders Fugmann
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 23 2001 - 21:00:32 EST