From: Greg KH <greg@kroah.com>
To: "Shaheed R. Haque" <srhaque@iee.org>
Cc: linux-kernel@vger.kernel.org, with@dsl.pipex.com
Subject: Re: [RFC] Device class rework [0/5]
Date: Wed, 23 Apr 2003 09:00:40 -0700 [thread overview]
Message-ID: <20030423160040.GA11015@kroah.com> (raw)
In-Reply-To: <1051084444.3ea6469c044ef@netmail.pipex.net>
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
next prev parent reply other threads:[~2003-04-23 15:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-23 7:54 Re: [RFC] Device class rework [0/5] Shaheed R. Haque
2003-04-23 16:00 ` Greg KH [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-04-22 20:55 Greg KH
2003-04-23 0:59 ` Hanna Linder
2003-04-23 1:54 ` Greg KH
2003-04-23 16:18 ` Hanna Linder
2003-04-23 16:23 ` Greg KH
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=20030423160040.GA11015@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=srhaque@iee.org \
--cc=with@dsl.pipex.com \
/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