Re: [PATCH] /proc/scsi/map

Martin Schwenke (martin@meltin.net)
Fri, 21 Jun 2002 08:59:19 +1000


>>>>> "Linus" == Linus Torvalds <torvalds@transmeta.com> writes:

Linus> But driverfs also gives information that /sbin/hotplug doesn't:

Linus> [...]

Linus> In other words, it's just a way of exposing information
Linus> that the kernel already has, and that the kernel has to
Linus> have _anyway_.

Does it have to be limited ot information that the kernel already has?

In particular, I'm thinking of the SCSI standard inquiry and EVPD
inquiry pages. Mike Sullivan's patch does some SCSI inquiries and
extracts information from the results. I'm wondering if the SCSI
driver could just do all of the available EVPD inquiries (available
pages are listed in the TOC on EVPD inquiry page 0), and use driverfs
to expose all of that (binary) information.

Right now the inquiries can be done from userspace using an ioctl().

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/