Messages in this thread |  | | Date | Fri, 07 Dec 2001 11:56:23 +0100 | | From | Martin Dalecki <> | | Subject | Re: Linux/Pro -- clusters |
| |
Alan Cox wrote:
> > For example please grep for the MINOR() macro in the scsi layer... > > Most of the places where it's used should be replaced by a simple > > driver instance enumerator. I did this once already, so this is for > > sure. > > it become block_device->instance or ->minor
Well if all the infromation those functions are needing would be already in block_device in place, that it could become as easy as just passing &block_device there. However please note that replacing kdev_t in the scsi layer with just passing the minor can be done already *now* without any pain. The same applies to the excessive MINOR lookups in the v4l code. I did this already some time ago (patch was here - about one year ago)
> major/minors for old stuff still end up leaking into user space and > mattering there. I'm not sure the best option for that
Thta's no problem. But they should be used as hash values no the syscall implementation level and nowhere else.
-- - phone: +49 214 8656 283 - job: eVision-Ventures AG, LEV .de (MY OPINIONS ARE MY OWN!) - langs: de_DE.ISO8859-1, en_US, pl_PL.ISO8859-2, last ressort: ru_RU.KOI8-R - 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/
|  |