Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761429AbZDQQME (ORCPT ); Fri, 17 Apr 2009 12:12:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761229AbZDQQLf (ORCPT ); Fri, 17 Apr 2009 12:11:35 -0400 Received: from mail-fx0-f158.google.com ([209.85.220.158]:53236 "EHLO mail-fx0-f158.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761114AbZDQQLd (ORCPT ); Fri, 17 Apr 2009 12:11:33 -0400 MIME-Version: 1.0 In-Reply-To: <49E8A551.7050307@linux.vnet.ibm.com> References: <49E7307A.8000205@vlnb.net> <49E77795.7080204@linux.vnet.ibm.com> <49E85F1C.7040106@vlnb.net> <49E8832F.6070302@linux.vnet.ibm.com> <49E8A551.7050307@linux.vnet.ibm.com> From: Kay Sievers Date: Fri, 17 Apr 2009 18:03:28 +0200 Message-ID: Subject: Re: [Scst-devel] Discussion about SCST sysfs layout and implementation. To: Daniel Debonzi Cc: Vladislav Bolkhovitin , scst-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1217 Lines: 26 On Fri, Apr 17, 2009 at 17:50, Daniel Debonzi wrote: > Do you mean that uses struct device is the right way to do it instead of > kobjects or it is just a option to get things on right places into sysfs? You can not put kobjects in /sys/devices/ and there will be no disconnected kobject tree just for scsi, unless the scsi maintainers really want want that, and then they should create their own filesystem instead, and not use kobjects at all. > I don't know this struct closely but my first impression looking to the > source code is that it is tied with hardware and has some complexity we > probably don't need. What do you think? If you want to integrate with the current scsi devices/objects, which is the only sensible option I think, you have to use struct device devices, kobjects will not get a classification in sysfs, and will be invisible for userspace tools unless you do random readdir() in /sys/devices/ to find them. 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/