Re:Curse Of The Gifted (2000)
by jtchang on Tuesday February 11, 2014 @03:44PM
(#7220298)
Anyone explain what "splitting a driver" in kernel parlance and code sharing is? Modularization is just breaking large pieces of the program up into small pieces right? Is code sharing just the same thing or are they talking about something different?
[ Parent
| on HN ]
Re:Curse Of The Gifted (2000)
by lukecampbell on Tuesday February 11, 2014 @04:33PM
(#7220610)
I believe in this case that the driver existed as one piece or module and each hardware version was handled as a different case in branch logic in an attempt to keep the code consolidated and modular (code sharing). As the hardware matured and new versions came to be it gets harder to reuse existing code and that's the context of this thread.
Linus wants to split the driver and create a new module to house that handles only that specific flavor of hardware instead of adding new edge-cases to the existing code.
At least, that's how I read it. I wasn't working on the Kernel back in 2000 so I can't say.
Check the links in this comment: https://news.ycombinator.com/item?id=7220508
Specifically: https://lkml.org/lkml/2000/8/22/52