Re: single subsytem multiple ksets (sysfs, kobject)

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

 



On Tue, Feb 15, 2005 at 04:03:20PM -0800, Greg KH hit keys to express the following:
> On Tue, Feb 15, 2005 at 03:56:09PM -0800, Om wrote:
> > Hi,
> > I am learning about kobjects and their hierarchy.
> > I have made some progress ;-) I have read ( I hope I understood as well) the
> > article series on lwn and the chapter on RML's book.
> > 
> > I am searching for a subsystem that has more than one ksets. My intention is to
> > understand how a subsytem can have more than one kset. Single kset subsystem is
> > easy to understand (http://lwn.net/Articles/55859/?format=printable). 
> 
> Why do you want to have a subsystem with more than one kset?
That solves my trouble! ;-)
I could not think of any scenario where a single subsystem has multiple ksets.
the following quote from lwn (http://lwn.net/Articles/51437/) where subsystems
are described, 
"A subsystem, thus, is really just a wrapper around a kset. In fact, life is not
quite that simple; a single subsystem can contain multiple ksets. This
containment is represented by the subsys pointer in struct kset; so, if there
are multiple ksets in a subsystem, it will not be possible to find all of them
directly from the subsystem structure"
confused me.

If there is no practical implications of a single subsytem with multiple ksets
associated, it takes away a lot of (unnecessary) complexity. ;-)

Sorry for the multiple post on this. Mea culpa.
Thanks
Om.

-- 
I'll pretend to trust you if you'll pretend to trust me.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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