Re: IDE? IDE-TNG driver

Ruth Ivimey-Cook (Ruth.Ivimey-Cook@ivimey.org)
Sat, 17 Aug 2002 18:16:34 +0100 (BST)


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/