linux kernel - one tasklet used by different drivers -


is possible define single tasklet in 1 module, , "export" use others? wonder if theoretically possible, synchronization , ordered access tasklet? or such idea stupid?

thanks.

sure. no reason why not so. can't see why idea so, there's nothing stopping you. tasklet framework makes guarantees, 1 of tasklet not run on more 1 cpu @ time. there's no real synchronization issue.

however, there no "ordered access" tasklet in sense can queue work it. if call tasklet_schedule while tasklet running, tasklet executed again, execution may deferred ksoftirqd thread.

you should read ldd3 section on tasklets @ http://www.makelinux.net/ldd3/chp-7-sect-5.shtml


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -