mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* tasklets and queuing.
@ 2009-10-11  3:36 Joel Fernandes
  0 siblings, 0 replies; only message in thread
From: Joel Fernandes @ 2009-10-11  3:36 UTC (permalink / raw)
  To: linux-kernel

Hi Friends,

I have a question about tasklets:

I understand that they are used to defer work during interrupt
handling. What I don't understand is - how do they handle queuing of
deferred work?
Specially with tasklets, if a tasklet is re-scheduled before the
previous scheduling of the same tasklet has a chance to run, then the
tasklet is executed only once - not twice. But what if the work that
the tasklet was supposed to do in these 2 instances were different and
that its function was supposed to be passed 2 different structures?
Shouldn't the tasklet be executed twice with these 2 structures?

I know that work queues are there for that, but how do device drivers
that use tasklets cope with the above?

Thanks,
-Joel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-10-11  3:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-11  3:36 tasklets and queuing Joel Fernandes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®