lkml.org 
[lkml]   [2001]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjecttasklets and finalization
Date
Hi!  In the driver I'm working on, a tasklet is scheduled
from time to time. Are there any guarantees as to when
it will run? I'm worried, for example, about module
unloading: how to be sure that the scheduled tasklet runs
before the module is unloaded?

Thanks,

Duncan.

PS: My first thought was to use tasklet_kill, but according
to "Linux device drivers" (2nd ed) that may hang if the
tasklet isn't pending.

PPS: Another thought was to call schedule(), hoping that
all pending asklets will get run then, but is that reliable?
-
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 13:13    [W:0.033 / U:4.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site