[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <14cd75110812150555m36e1fef8w8f966b9acdd336@mail.gmail.com>
Date: Mon, 15 Dec 2008 18:55:31 +0500
From: "Muhammad Mutahir Latif" <mutahirlatif@...il.com>
To: linux-kernel@...r.kernel.org
Subject: Re: SATA passthrough commands from User Space
Thank you Jeff for the SG_IO suggestion. Are there any numbers as to
the average throughput achieved using the SG_IO ioctl. The reason I am
asking is that for our scenario the data transfer throughput required
might not be fulfilled using the SG_IO ioctl due to the SCSI->ATA
translations. In case the SG_IO does not fulfill the requirement,
where should we add IOCTL functionality. At first I was thinking of
adding it to the AHCI driver, but by looking at the code I saw that
the ahci driver only implements functions so that they can be hooked
with the libata framework, so should I add IOCTL hooks to the
libata?. Please let me know if I am by any chance going completely in
the wrong direction.
Thanks
Mutahir
On Thu, Dec 11, 2008 at 1:30 PM, Jeff Garzik <jeff@...zik.org> wrote:
> Muhammad Mutahir Latif wrote:
>>
>> Hi
>>
>> I am new to linux kernel development and need help in developing an
>> application in linux for a SATA device. What is required is that the
>> application needs to send raw SATA commands along with data (like Read
>> DMA, Write FPDMA etc) to a SATA hard disk. Secondly we also have to
>> achieve a reasonably high data transfer throughput.
>
> Use the existing SG_IO ioctl.
>
> Jeff
>
>
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists