From: Mike Anderson <andmike@us.ibm.com>
To: Douglas Gilbert <dougg@torque.net>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH] scsi sysfs update (upper 2/3)
Date: Thu, 7 Nov 2002 20:13:11 -0800 [thread overview]
Message-ID: <20021108041311.GE1292@beaverton.ibm.com> (raw)
In-Reply-To: <3DCB30BC.7040703@torque.net>
Douglas Gilbert [dougg@torque.net] wrote:
> Mike,
> I have put scsi_debug's parameters under /bus/scsi/drivers
> and scsi_debug obviously isn't an upper layer driver. Also
> I would be tempted to put mid level parameters there (if
> there were any). Where else should driver parameters be
> placed for drivers that have no association with any
> other bus?
>
Putting driver related attributes under your driver is not wrong. In
the patch I sent out I created an artifical bus for scsi_debug. The bus
looks similar to a PCI bus. It needs some extensions to allow for
adding multiple adapters. This allows scsi_debug to more accurately
simulate a pci or other bus adapter. It is also registering as a
scsi-host class of drivers.
I have attached an out of an example tree below. I cut a lot of devices
to make it fit, but you should still be able to see the layout.
> There is also the conundrum of driver parameters for
> something like advansys that has one host on ISA, another
> on PCMCIA and a third on PCI (unlikely but possible).
This might be a better question for Patrick Mochel, but I believe there
is nothing that would prevent the driver from registering multiple
driver objects on each of the associated buses.
-andmike
--
Michael Anderson
andmike@us.ibm.com
.
|-- bus
| |-- pci
| | |-- devices
| | | |-- 01:03.0 -> ../../../devices/pci1/01:03.0
| | | |-- 01:03.1 -> ../../../devices/pci1/01:03.1
| | `-- drivers
| | |-- aic7xxx
| | | |-- 01:03.0 -> ../../../../devices/pci1/01:03.0
| | | `-- 01:03.1 -> ../../../../devices/pci1/01:03.1
| |-- scsi
| | |-- devices
| | | |-- 3:0:0:0 -> ../../../devices/pci1/01:03.1/3:0:0:0
| | | |-- 3:0:0:0:gen -> ../../../devices/pci1/01:03.1/3:0:0:0/3:0:0:0:gen
| | | |-- 3:0:4:0 -> ../../../devices/pci1/01:03.1/3:0:4:0
| | | |-- 3:0:4:0:gen -> ../../../devices/pci1/01:03.1/3:0:4:0/3:0:4:0:gen
| | | |-- 4:0:0:0 -> ../../../devices/scsi_dbg_fake/02:05.0/4:0:0:0
| | | |-- 4:0:0:0:gen -> ../../../devices/scsi_dbg_fake/02:05.0/4:0:0:0/4:0:0:0:gen
| | `-- drivers
| | |-- sd
| | | |-- 3:0:0:0 -> ../../../../devices/pci1/01:03.1/3:0:0:0
| | | |-- 3:0:4:0 -> ../../../../devices/pci1/01:03.1/3:0:4:0
| | | |-- 3:0:5:0 -> ../../../../devices/pci1/01:03.1/3:0:5:0
| | | |-- 4:0:0:0 -> ../../../../devices/scsi_dbg_fake/02:05.0/4:0:0:0
| | |-- sg
| | | |-- 3:0:0:0:gen -> ../../../../devices/pci1/01:03.1/3:0:0:0/3:0:0:0:gen
| | | |-- 3:0:4:0:gen -> ../../../../devices/pci1/01:03.1/3:0:4:0/3:0:4:0:gen
| | | |-- 4:0:0:0:gen -> ../../../../devices/scsi_dbg_fake/02:05.0/4:0:0:0/4:0:0:0:gen
| |-- scsi_dbg_fake
| | |-- devices
| | | `-- 02:05.0 -> ../../../devices/scsi_dbg_fake/02:05.0
| | `-- drivers
| | `-- scsi_debug
| | `-- 02:05.0 -> ../../../../devices/scsi_dbg_fake/02:05.0
|-- class
| `-- scsi-host
| |-- devices
| | `-- 0 -> ../../../devices/scsi_dbg_fake/02:05.0
| `-- drivers
|-- devices
| |-- scsi_dbg_fake
| | `-- 02:05.0
| | `-- 4:0:0:0
| | |-- 4:0:0:0:gen
| | `-- block -> ../../../../block/sdd
next prev parent reply other threads:[~2002-11-08 4:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-07 7:36 [PATCH] scsi sysfs update (base 1/3) Mike Anderson
2002-11-07 7:39 ` [PATCH] scsi sysfs update (upper 2/3) Mike Anderson
2002-11-07 7:42 ` [PATCH] scsi sysfs update (scsi_debug 3/3) Mike Anderson
2002-11-07 23:30 ` Christoph Hellwig
2002-11-07 16:33 ` Mike Anderson
2002-11-07 23:35 ` Douglas Gilbert
2002-11-08 2:30 ` Christoph Hellwig
2002-11-07 23:29 ` [PATCH] scsi sysfs update (upper 2/3) Christoph Hellwig
2002-11-07 16:41 ` Mike Anderson
2002-11-08 1:20 ` Christoph Hellwig
2002-11-08 2:21 ` Mike Anderson
2002-11-08 3:34 ` Douglas Gilbert
2002-11-08 4:13 ` Mike Anderson [this message]
2002-11-08 4:53 ` Christoph Hellwig
2002-11-08 5:41 ` Mike Anderson
2002-11-07 23:28 ` [PATCH] scsi sysfs update (base 1/3) Christoph Hellwig
2002-11-07 17:01 ` Mike Anderson
2002-11-07 17:22 ` Patrick Mansfield
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021108041311.GE1292@beaverton.ibm.com \
--to=andmike@us.ibm.com \
--cc=dougg@torque.net \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox