Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264861AbTFQRPo (ORCPT ); Tue, 17 Jun 2003 13:15:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264862AbTFQRPo (ORCPT ); Tue, 17 Jun 2003 13:15:44 -0400 Received: from ida.rowland.org ([192.131.102.52]:5124 "HELO ida.rowland.org") by vger.kernel.org with SMTP id S264861AbTFQRPh (ORCPT ); Tue, 17 Jun 2003 13:15:37 -0400 Date: Tue, 17 Jun 2003 13:29:31 -0400 (EDT) From: Alan Stern X-X-Sender: stern@ida.rowland.org To: Greg KH cc: Patrick Mochel , Russell King , Subject: Re: Flaw in the driver-model implementation of attributes In-Reply-To: <20030616233651.GB27033@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: 1275 Lines: 31 On Mon, 16 Jun 2003, Greg KH wrote: > All disk info is in the /sys/block directory, does that work for you? Not scsi disk info. (Or maybe it should be there but it isn't.) And no, it doesn't work for me because it's owned by the scsi core, not my driver. > I think the scsi core will create you a directory that you can use that > will have the proper lifetime that you are looking for. If not, I can > look into doing something else for some of the other USB devices that > are not using the USB major. I don't think it would be appropriate to use that directory, since my driver wouldn't own it. How about creating a /sys/class/usb/usb-storage/ directory, under which there could be a directory for each USB mass-storage device? Or would it be better to create a usb-storage.# directory under the interface's directory in /sys/devices/ ? It's worth pointing out that both the OHCI and EHCI drivers also do the same wrong thing. They create their attribute files in a directory owned by the PCI driver. 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/