Re: [PATCH] /proc/scsi/map

Patrick Mochel (mochel@osdl.org)
Tue, 25 Jun 2002 09:17:39 -0700 (PDT)


> One thing that is very confusing about the current
> drivers/base code is that "struct bus' really has nothing to do
> with a bus. It should be called "struct device_type." For example,
> sd_mod (scsi disk), sr_mod (scsi cdrom), and sg (scsi generic) are
> all drivers for arbitrary scsi devices, regardless of whether
> they are connected by scsi ribbon cable, usb, or whatever.

I assume you're talking about 'struct bus_type'. They're there to
represent types of buses. There is one or each type of bus. There should
be one for SCSI, but it doesn't care about what the device type is.

'struct device_class', which is coming soon, is used to represent types of
devices, like disks, cdroms, etc. Device classes don't care what bus a
device resides on. It's the logical interface to the device.

-pat

-
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/