All of lore.kernel.org
 help / color / mirror / Atom feed
* do all kobjects in a kset need to be the same ktype?
@ 2011-05-10 11:07 Robert P. J. Day
  2011-05-10 12:36 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Robert P. J. Day @ 2011-05-10 11:07 UTC (permalink / raw)
  To: kernelnewbies


  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
========================================================================

^ permalink raw reply	[flat|nested] 3+ messages in thread

* do all kobjects in a kset need to be the same ktype?
  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
  2011-05-10 13:01   ` Robert P. J. Day
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2011-05-10 12:36 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* do all kobjects in a kset need to be the same ktype?
  2011-05-10 12:36 ` Greg KH
@ 2011-05-10 13:01   ` Robert P. J. Day
  0 siblings, 0 replies; 3+ messages in thread
From: Robert P. J. Day @ 2011-05-10 13:01 UTC (permalink / raw)
  To: kernelnewbies

On Tue, 10 May 2011, Greg KH wrote:

> On Tue, May 10, 2011 at 07:07:18AM -0400, Robert P. J. Day wrote:

> > can someone clarify this?
>
> Have you read Documentation/kobjects.txt first?

  ah, quite so, thanks.

rday

-- 

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-10 13:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-05-10 13:01   ` Robert P. J. Day

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.