From: Greg KH <greg@kroah.com>
To: Dmitry Torokhov <dtor_core@ameritech.net>
Cc: linux-kernel@vger.kernel.org,
Norbert Preining <preining@logic.at>,
Andrew Morton <akpm@osdl.org>
Subject: Re: 2.6.10-mm1, class_simple_* and GPL addition
Date: Fri, 29 Oct 2004 15:55:05 -0500 [thread overview]
Message-ID: <20041029205505.GB30638@kroah.com> (raw)
In-Reply-To: <200410272012.44361.dtor_core@ameritech.net>
I've thought about this a bunch recently. A lot of people emailed me
privately about it too. Here's my reasoning as to why I did this:
On Wed, Oct 27, 2004 at 08:12:44PM -0500, Dmitry Torokhov wrote:
> I wonder what are the technical merits of this change. I certainly agree
> with Pat's assertion that the rest of driver model functions should be used
> by in-kernel subsystems (such as PCI, USB, serio etc) only and not exposed
> to the outside world. This will allow freely fix/enhance the core without
> fear of silently breaking external modules.
>
> But class_simple is itself a limited and contained interface with well-
> defined semantic. Which I believe was advertised aat one time as a wrapper
> for the objects wanting to plug into hotplug/udev model but either living
> outside of established subsystems or within subsystem not yet ready to
> implement proper refcounting needed for full-blown sysfs integration.
You are right, class_simple is merely a wrapper around the core class
and class_device functions. It makes it easier for a driver subsystem
to implement a very common feature.
See, "wrapper" is the point here. If we were to have someone try to
submit the class_simple code today, after the driver core had the GPL
function exports on them, we would laugh them out of the room on the
grounds that they were wrapping GPL interfaces with a looser one. So,
because of that, I'm going to mark these functions this way.
As to people saying it's futile to try to get companies to change, I
don't buy that. Go look up the history of the EXPORT_SYMBOL_GPL marker
and see who used it first. I know for a fact that because of this
marking on some kernel functions a very large company totally switched
directions and rethought their policies about Linux kernel
drivers/modules. Now that company has plays very nicely with the Linux
kernel community, and contributes a lot of very good, useful, and needed
code, all under the GPL.
So we can change things, little things like this can help everyone out,
even if I'm going to get a ton of nvidia user hate mail directed to me
after the next kernel comes out...
Remember, binary kernel modules are a leach on our community.
thanks,
greg k-h
next prev parent reply other threads:[~2004-10-29 21:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-27 13:50 2.6.10-mm1, class_simple_* and GPL addition Norbert Preining
2004-10-27 15:37 ` Greg KH
[not found] ` <1098890583.6990.20.camel@laptop.fenrus.org>
2004-10-27 17:08 ` Norbert Preining
2004-10-27 19:17 ` Petr Vandrovec
2004-10-27 19:55 ` Arjan van de Ven
2004-10-27 21:21 ` Petr Vandrovec
2004-10-28 1:12 ` Dmitry Torokhov
2004-10-29 20:55 ` Greg KH [this message]
2004-10-29 22:06 ` Petr Vandrovec
2004-10-30 11:44 ` Dave Airlie
2004-10-30 14:44 ` Fabio Coatti
2004-11-01 22:31 ` Greg KH
2004-11-09 23:12 ` Luke Maurer
2004-11-10 10:32 ` Fabio Coatti
2004-12-16 17:50 ` Chris Wright
2004-12-16 18:57 ` Greg KH
2004-10-27 21:30 ` Dave Airlie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041029205505.GB30638@kroah.com \
--to=greg@kroah.com \
--cc=akpm@osdl.org \
--cc=dtor_core@ameritech.net \
--cc=linux-kernel@vger.kernel.org \
--cc=preining@logic.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox