From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751503AbWIZNvM (ORCPT ); Tue, 26 Sep 2006 09:51:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751513AbWIZNvM (ORCPT ); Tue, 26 Sep 2006 09:51:12 -0400 Received: from ug-out-1314.google.com ([66.249.92.171]:23490 "EHLO ug-out-1314.google.com") by vger.kernel.org with ESMTP id S1751512AbWIZNvG (ORCPT ); Tue, 26 Sep 2006 09:51:06 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZPDEej0MrASVV6pMJ9hruidrSvjQg4Jm+KemvPhN3uHBdNecpk0iFAkZqyidH907aoOPyWMNAkOsT+xBSnZNMTgpbjIShW2Udhamss05tky5xnkb01BvV4Otv0Qvp3WToJQW31RJk1vkgidx0yUaViStM8WBL7wnSW/9rnWMGUs= Message-ID: Date: Tue, 26 Sep 2006 09:51:04 -0400 From: "Dmitry Torokhov" To: "Greg KH" Subject: Re: [PATCH 30/47] Driver core: create devices/virtual/ tree Cc: linux-kernel@vger.kernel.org, "Kay Sievers" In-Reply-To: <20060926134119.GA11435@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <11592491551919-git-send-email-greg@kroah.com> <11592491611339-git-send-email-greg@kroah.com> <11592491643725-git-send-email-greg@kroah.com> <11592491672052-git-send-email-greg@kroah.com> <11592491704137-git-send-email-greg@kroah.com> <11592491744040-git-send-email-greg@kroah.com> <1159249177618-git-send-email-greg@kroah.com> <11592491803904-git-send-email-greg@kroah.com> <20060926134119.GA11435@kroah.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 9/26/06, Greg KH wrote: > On Tue, Sep 26, 2006 at 09:24:15AM -0400, Dmitry Torokhov wrote: > > On 9/26/06, Greg KH wrote: > > >From: Greg Kroah-Hartman > > > > > >This change creates a devices/virtual/CLASS_NAME tree for struct devices > > >that belong to a class, yet do not have a "real" struct device for a > > >parent. It automatically creates the directories on the fly as needed. > > > > > > > Why do you need multiple virtual devices? All parentless class devices > > could grow from a single virtual device. > > They could, but it's a mess of a single directory if you do that. > Having /sys/devices/virtual/tty/ as a place for all tty virtual device > is nicer than /sys/devices/virtual/ as a single place for all of them > (mem, network, tty, misc, etc.) > You supposed to use classes for classification, and devices to represent the tree so that would be /sys/class/tty/... -- Dmitry