lkml.org 
[lkml]   [2005]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: A "new driver model" and EXPORT_SYMBOL_GPL question
On Sun, 3 Jul 2005, Michal Jaegermann wrote:

> It dawned on me only now that a "new driver model" introduced
> in patches from GKH export symbols like that:
>
> EXPORT_SYMBOL_GPL(class_create);
> EXPORT_SYMBOL_GPL(class_destroy);
>
> and so on. The problem is that corresponding old symbols, which
> are still present in 2.6.12, were exported
>
> EXPORT_SYMBOL(class_simple_create);
> EXPORT_SYMBOL(class_simple_destroy);
> ....
>
> This creates a problem. There exist out-of-tree drivers which are
> using those symbols and, even if sources are available, are not
> licensed GPL for whatever reasons. No, I am not the author of any
> of those so I cannot do very much about re-licensing. As an effect
> a conversion to a "new driver model", even if simple, does not work.
> In particular I bumped into that with Myrinet card drivers.
>
> Was a decision to use EXPORT_SYMBOL_GPL deliberate and if yes then
> what considerations dictated it, other then the patch author wrote
> it that way, and what drivers in question are supposed to use when
> this change will show up in the mainline? It looks that 2.6.13
> will do this.
>
> Thanks,
> Michal
> -

This problem will continue. Eventually there will be no general
exported symbols. The apparent idea is to prevent the use of the
kernel in proprietary systems.

Not to worry. The tools provided with a typical Linux distribution
are capable of resolving those symbols. You can make a script
that `greps` System.map for the correct offsets of those symbols.
You can use those offsets in a linker script.

Cheers,
Dick Johnson
Penguin : Linux version 2.6.12 on an i686 machine (5537.79 BogoMips).
Notice : All mail here is now cached for review by Dictator Bush.
98.36% of all statistics are fiction.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-07-05 13:27    [W:0.062 / U:0.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site