At my university I am working on one project that involves some kernel programming. One part of this is loadable kernel module that registers interrupt handler for some given interrupt.
Now I have shared data structure that is used by interrupt handler and tasklets and I am wondering if I can be sure that tasklets are executed in the same order that they are scheduled or is it undefined?
For example my interrupt handler is called at time t1
and time t2
, each invocation executes tasklet_schedule(&customTasklet);
. Now, can I be sure that the tasklet that was scheduled at time t1
will be executed first?