* Re: Re: [RFC] Device class rework [0/5]
@ 2003-04-23 7:54 Shaheed R. Haque
2003-04-23 16:00 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Shaheed R. Haque @ 2003-04-23 7:54 UTC (permalink / raw)
To: greg; +Cc: linux-kernel, with
Hi Greg,
I support the intent of this patch, but would it not be a better idea to rename
the struct something like "device_class"? Rationale:
1. See the title of your patch (!!)
2. The word "class" is too generic and conveys no sense that is is to do with
devices.
3. I know that C++ is never going to make it into the kernel, but...
Thanks, Shaheed
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [RFC] Device class rework [0/5]
2003-04-23 7:54 Re: [RFC] Device class rework [0/5] Shaheed R. Haque
@ 2003-04-23 16:00 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2003-04-23 16:00 UTC (permalink / raw)
To: Shaheed R. Haque; +Cc: linux-kernel, with
On Wed, Apr 23, 2003 at 08:54:04AM +0100, Shaheed R. Haque wrote:
>
> Hi Greg,
>
> I support the intent of this patch, but would it not be a better idea to rename
> the struct something like "device_class"? Rationale:
Ok, if I do that, and that was what I originally did, then we end up
with:
struct device_class;
struct device_class_device;
struct device_class_interface;
Um, I don't think "struct device_class_device" is going to be
acceptable...
So I talked to a lot of people, explaining what the structures were, and
what they did, and in the end everyone agreed that dropping the
beginning "device_" is probably the best.
Well, not everyone agreed, but they couldn't come up with a better name,
so I took that as agreement :)
> 2. The word "class" is too generic and conveys no sense that is is to do with
> devices.
In a way, it is generic. It doesn't have to refer to a device (if the
pointer to struct device is NULL, then you don't get the "device"
symlink for free, that's it.) So we can now move block "devices", which
includes partitions, into this model, and also network "devices" if we
want too. Oh, how about filesystems, they also fit nicely into this
model, and aren't really a "device" at all...
> 3. I know that C++ is never going to make it into the kernel, but...
I know, I'm a stinker, but I honestly couldn't think of a better name,
and am open to ideas from everyone else.
And, I like the way my editor highlights the code, "struct class"...
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-23 15:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-23 7:54 Re: [RFC] Device class rework [0/5] Shaheed R. Haque
2003-04-23 16:00 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox