Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 20 Jun 2002 03:11:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 20 Jun 2002 03:11:27 -0400 Received: from test.inspired.net.au ([216.122.33.55]:34245 "EHLO test.inspired.net.au") by vger.kernel.org with ESMTP id ; Thu, 20 Jun 2002 03:11:25 -0400 Message-Id: <200206200711.RAA10165@thucydides.inspired.net.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 20 Jun 2002 17:09:44 +1000 To: Linus Torvalds Cc: Kurt Garloff , Linux kernel list , Linux SCSI list Subject: Re: [PATCH] /proc/scsi/map In-Reply-To: References: <20020620004442.GA19824@gum01m.etpnet.phys.tue.nl> X-Mailer: VM 7.07 under Emacs 21.2.90.3 From: "Martin Schwenke" Reply-To: "Martin Schwenke" X-Music: john_butler_trio / three / money Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1269 Lines: 35 >>>>> "Linus" == Linus Torvalds writes: Linus> Can't you add the SCSI devices to the device tree, and be Linus> done with it? Do you mean the /devices tree or the Open Firmware (OF) device-tree (as in IEEE Std 1275). I suspect that you mean the former, but... Linus> [...] Linus> All fixed at least to _some_ degree by giving the most Linus> complete address we can, ie something like Linus> /devices/root/pci0/00:02.0/02:1f.0/03:07.0 That looks similar, but not identical to an Open Firmware node for a SCSI device: device-tree/pci@3fff5e09000/pci@b,6/scsi@1,1/sd/... Why not use the structure of, and a subset of the capabilities of, an OF device-tree for building /devices? It's a little more verbose, but it's a standard and it fits the current problem pretty well. I've been working on some hardware inventory stuff at IBM that uses an augmented OF device-tree (as a directory tree in userspace) to keep track of useful stuff... peace & happiness, martin - 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/