LWN.net Logo

Reworking the semaphore interface

Reworking the semaphore interface

Posted Dec 15, 2005 22:02 UTC (Thu) by khim (subscriber, #9252)
In reply to: Reworking the semaphore interface by jreiser
Parent article: Reworking the semaphore interface

Could there be a compile-time option CONFIG_KMUTEX_USES_KSEMAPHORE which preserves source compatibility, perhaps even binary compatibility?

Binary compatibility is not even considered (as usual), source compatibility is discussed.


(Log in to post comments)

Reworking the semaphore interface

Posted Dec 18, 2005 9:14 UTC (Sun) by hamjudo (subscriber, #363) [Link]

As a very occasional kernel hacker who mostly codes by looking at other device drivers. If I model my code after obsolete code or documentation, I don't want source code compatibility. I want a compile time error message that is easy to google.

If there is a flag day, could someone do people like me a favor? Attempt to compile a function written in the old style, with headers for the new style, then paste the error message into a comment attached to this article. Or if the details change, the article describing the updated change.

If I forget about this change when it matters and I make the mistake, google will lead me to an article that tells me the right way to do it.

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