Re: [PATCH] /proc/scsi/map

From: Patrick Mochel (mochel@osdl.org)
Date: Tue Jun 25 2002 - 11:17:39 EST


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



This archive was generated by hypermail 2b29 : Sun Jun 30 2002 - 22:00:09 EST