lkml.org 
[lkml]   [2001]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Looking for comments on Bottom-Half/Tasklet/SoftIRQ
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/

\
 
 \ /
  Last update: 2005-03-22 12:57    [W:0.240 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site