Re: some simple questions about sysfs

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

 



On Fri, Mar 02, 2007 at 02:19:11PM -0500, Robert P. J. Day wrote:
> On Fri, 2 Mar 2007, Greg KH wrote:
> 
> > On Fri, Mar 02, 2007 at 10:27:46AM -0500, Robert P. J. Day wrote:
> 
> > > more later after i do more reading.
> >
> > What specifically are you trying to figure out here?
> 
> there's nothing specific so much as i just want a clear idea of the
> *big* picture.  all of the documentation i read is perfectly adequate
> in terms of explaining the low-level details, but is maddeningly vague
> in discussing how it all hangs together at the *highest* level.
> 
> one thing i'm still unclear on is how, if you can't traverse the sysfs
> tree from the top down, how does a power down cleanly start to shut
> stuff off from the leaves and work its way back up?  how does the
> power down procedure *get* to the leaves of the tree in the first
> place?

We walk the list of all devices in the system.  See the call to
device_pm_add() which is called in device_add(). This adds the device to
a list that is then later walked in the function device_suspend().

So don't get mired down in the kset/subsystem mess, it's all a lot
simpler once you get above that.

Not to say that the kset/subsystem stuff shouldn't be cleaned up...

thanks,

greg k-h

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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