Messages in this thread | | | Date | Sat, 17 Aug 2002 11:03:19 -0700 (PDT) | From | Andre Hedrick <> | Subject | Re: IDE? IDE-TNG driver |
| |
ide_ioctl(fd, HDIO_SET_IDE_SCSI, bool)
Where bool does the subdriver switch. Just that ioctl's are being blasted and people using are frowned upon.
This was a feature Alan Cox poked me for to try and move away from how modules are basically an all or nothing grab-all.
Regards,
Andre Hedrick LAD Storage Consulting Group
On Sat, 17 Aug 2002, Ruth Ivimey-Cook wrote:
> On Sat, 17 Aug 2002, Andre Hedrick wrote: > > > > >I will hand it to you guys on a silver platter IDE-TNG. > > > >Below yields modular chipsets and channel index registration. > >Selectable IOPS for arch independent Taskfile Transport layers. > ... > >You have ide-cd registered on a cdrw and you want to burn a cd? > >open(/dev/hdX) transform_subdriver_scsi close(/dev/hdX) > >open(/dev/sg) and burn baby burn. > >close(/dev/sg) releases transform_subdriver_scsi > >open(/dev/hdX) load native atapi transport. > > > Andre, I see the thought, but surely this is prine to races and other > difficulties. > > Wouldn't it be better to provide an IDE ioctl() that enables the caller to use > set the SCSI transport on an open FD, so your sequence becomes: > > open(/dev/hdX) > ioctl(transform_subdriver_scsi) > ioctl(scsi_ops) > write(data) > close(/dev/hdX) > > Ruth > > -- > Ruth Ivimey-Cook > Software engineer and technical writer. > > - > 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/ >
- 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/
| |