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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux