From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: do all kobjects in a kset need to be the same ktype?
Date: Tue, 10 May 2011 05:36:34 -0700 [thread overview]
Message-ID: <20110510123634.GA27917@kroah.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1105100702540.6724@localhost6.localdomain6>
On Tue, May 10, 2011 at 07:07:18AM -0400, Robert P. J. Day wrote:
>
> in the current version of the header file kobject.h, there's this
> comment:
>
> /**
> * struct kset - a set of kobjects of a specific type, belonging to a specific subsystem.
> *
> * A kset defines a group of kobjects. They can be individually
> * different "types" but overall these kobjects all want to be grouped
> * together and operated on in the same manner. ksets are used to
> * define the attribute callbacks and other common events that happen to
> * a kobject.
> ... snip ...
>
> that seems contradictory. the first line suggests that all the
> kobjects in a kset are of a specific type,
Yes.
> yet that comment goes on to
> suggest that they can be "individually" different types.
Yes.
> can someone clarify this?
Have you read Documentation/kobjects.txt first?
> rday
>
> p.s. and i'm thinking that the reference to a "subsystem" could be
> amended since actual subsystems don't exist anymore. i may have
> another question about that shortly.
No, we use "subsystem" to define either a bus or class as they are the
same thing in the end.
thanks,
greg k-h
next prev parent reply other threads:[~2011-05-10 12:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-10 11:07 do all kobjects in a kset need to be the same ktype? Robert P. J. Day
2011-05-10 12:36 ` Greg KH [this message]
2011-05-10 13:01 ` Robert P. J. Day
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=20110510123634.GA27917@kroah.com \
--to=greg@kroah.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.