You are right, the point is Linux is a moving target, and I try to
write code as good as I can in given circumstances but never better.
I accept occasional breakage in obscure cases like syncppp+hdlc,
but I also need a way to fix it and/or remove the obscureness (or
whatever the right word is).
Historically we always have had two pointers:
- dev->priv
- first we had struct (net_)device *dev and by embedding it in larger
structure we were able to have another private data area (even with
Space.c)
- then netdev_alloc() and netdev_priv() came
- since 2.6.23 netdev_priv() returns dev->priv - one pointer is gone.
Anyway, I guess we should rather concentrate on what to do now with
the thing. Perhaps you have some idea?
--
Krzysztof Halasa
--