LWN.net Logo

Drivers as documentation

Drivers as documentation

Posted Nov 25, 2011 5:59 UTC (Fri) by jzbiciak (✭ supporter ✭, #5246)
In reply to: Drivers as documentation by w_sang
Parent article: Drivers as documentation

It wouldn't surprise me if some of these magic constants bleed into kernel code because they came from a poorly documented reference implementation from the vendor itself. It could be that the Linux driver writer never knew the full interpretation of the magic constant to begin with.


(Log in to post comments)

Drivers as documentation

Posted Nov 25, 2011 10:10 UTC (Fri) by w_sang (guest, #52415) [Link]

Yup, that's why I wrote 'hardly'. There are also drivers which mainly copy sniffed behaviour, but work fine, nonetheless. But that's a detail, the bigger issues are outlined above.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds