Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756056AbXJJPjD (ORCPT ); Wed, 10 Oct 2007 11:39:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754134AbXJJPix (ORCPT ); Wed, 10 Oct 2007 11:38:53 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:48261 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754072AbXJJPix (ORCPT ); Wed, 10 Oct 2007 11:38:53 -0400 Date: Wed, 10 Oct 2007 11:38:50 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Greg KH cc: Tejun Heo , , , , Subject: Re: [PATCHSET 3/4] sysfs: divorce sysfs from kobject and driver model In-Reply-To: <20071009224820.GE21228@kroah.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 900 Lines: 23 On Tue, 9 Oct 2007, Greg KH wrote: > The rules for sysfs files are the following: > - one value, in text format, per file. > - no action apon open/close > - binary files are only allowed for "pass-through" type files > that the kernel does not touch (like for firmware and pci > config space) > - directories should be associated with a kobject where it makes > sense (no nesting deep subdirectories without a kobject > present) You have to stretch this a little for the power/ subdirectory every device gets. The only kobject it corresponds to is the one in the device, which already corresponds to the parent directory. Alan Stern - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/