Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161038AbVIPByT (ORCPT ); Thu, 15 Sep 2005 21:54:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161040AbVIPByT (ORCPT ); Thu, 15 Sep 2005 21:54:19 -0400 Received: from soundwarez.org ([217.160.171.123]:17024 "EHLO soundwarez.org") by vger.kernel.org with ESMTP id S1161038AbVIPByT (ORCPT ); Thu, 15 Sep 2005 21:54:19 -0400 Date: Fri, 16 Sep 2005 03:54:18 +0200 From: Kay Sievers To: Dmitry Torokhov Cc: Greg KH , linux-kernel@vger.kernel.org, Vojtech Pavlik , Hannes Reinecke , Patrick Mochel , airlied@linux.ie Subject: Re: [RFC] subclasses in sysfs to solve world peace Message-ID: <20050916015418.GA13486@vrfy.org> References: <20050916002036.GA6149@suse.de> <20050916010438.GA12759@vrfy.org> <200509152023.44003.dtor_core@ameritech.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200509152023.44003.dtor_core@ameritech.net> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1494 Lines: 45 On Thu, Sep 15, 2005 at 08:23:43PM -0500, Dmitry Torokhov wrote: > On Thursday 15 September 2005 20:04, Kay Sievers wrote: > > I like that the child devices are actually below the parent device > > and represent the logical structure. I prefer that compared to the > > symlink-representation between the classes at the same directory > > level which the input patches propose. > > Why don't we take it a step further and abandon classes altogether? > This way everything will grow from their respective hardware devices. Not everything is hardware. :) > Class represent a set of objects with similar characteristics. In > this regard event0 is no "lesser" than input0. Although they are > linked they are objects of the same importance. I do want to see > all input interfaces without scanning bunch of directories. No problem, how about this: /sys/class/input/ |-- input0 | |-- event0 | | `-- dev | `-- mouse0 | | `-- dev |-- input1 | |-- event1 | | `-- dev | `-- ts0 | | `-- dev |-- mice | `-- dev `-- interfaces |-- event0 ->·../input0/event0 |-- event1 ->·../input1/event1 |-- mouse0 ->·../input0/mouse0 |-- mice -> ../mice `-- ts0 -> ../input1/ts0 Kay - 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/