do all kobjects in a kset need to be the same ktype?

Robert P. J. Day rpjday at crashcourse.ca
Tue May 10 07:07:18 EDT 2011


  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, yet that comment goes on to
suggest that they can be "individually" different types.  can someone
clarify this?

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.

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



More information about the Kernelnewbies mailing list