User: Password:
|
|
Subscribe / Log in / New account

Mistake

Mistake

Posted Sep 30, 2004 14:13 UTC (Thu) by elanthis (guest, #6227)
In reply to: Mistake by mdomsch
Parent article: Driver core functions: GPL only

DKMS is useless if the API breaks. You can't recompile the driver if the API it requires changes or disappears when you update the kernel.


(Log in to post comments)

Mistake

Posted Sep 30, 2004 18:26 UTC (Thu) by hamjudo (guest, #363) [Link]

You can't recompile the driver if the API it requires changes or disappears when you update the kernel.

Unless you or your driver compiler tool know how to fix up the API. Look a couple stories up at remap_pfn_range(). If you follow the link to the actual patch, you'll see a temporary wrapper for maintaining the old API until the complete patch set is applied.

That class of API change lends itself to some simple heuristics. In this particular case, if the compiler complains that remap_page_range() is missing, add that 8 line inline function and recompile.

Many API changes really are that simple. Most of the more complex API transformations would still be straightforward to code in Perl, Python or the source code manipulation language of your choice. This is assuming that your goal is working code, rather than high performance code.

It is not hard work, but it is a lot of work, and people with the right skills would have to be convinced it is worth doing.

I don't believe it is worth doing at this time.


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