Re: [RFC] Migrating net/sched to new module interface

From: Werner Almesberger (
Date: Fri Feb 14 2003 - 21:28:18 EST

Roman Zippel wrote:
> Yes, and now compare how the solutions differ when the data is static and
> when it's allocated.

Do they ? Even if the data is static, it can become invalid
(in the sense that accessing it from a callback would lead
to some kind of undesirable behaviour, even though the access
itself would work), so I don't quite see why the difference
would matter.


        static ... common_callback(...)
                switch (my_state) {

        my_state = A;
        my_state = B;
        /* stray fancy_timer_A call to common_callback would
           trigger action for state B */

Depending on "my_state", the callback would perform different
actions. (The "fancy timers" would be some timer-like service
that doesn't del_timer_sync.)

This is getting to abstract. Why don't you just say where you
see the difference ? :-)

- Werner

 / Werner Almesberger, Buenos Aires, Argentina /
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Feb 15 2003 - 22:01:00 EST