thanks for the reply Andrei,
  through the IOCTL, I am actually trying to send a command to the
device and validate the response.So, when I send the command using the
IOCTL, I actually get a Input/Output Error. The reason I feel is that
the command is sent to the block layer and since block layer only
supports the read/write commands,even when I send command zero ,it
treats it like a read/write command.

On Thu, Oct 20, 2011 at 8:25 PM, Andrei Warkentin <[email protected]> wrote:
> Hi,
>
> ----- Original Message -----
>> From: "Shashidhar Hiremath" <[email protected]>
>> To: "Chris Ball" <[email protected]>, "J Freyensee" 
>> <[email protected]>, "John Calixto"
>> <[email protected]>, [email protected]
>> Sent: Thursday, October 20, 2011 1:09:00 AM
>> Subject: A question on IOCTL interface for MMC
>>
>> Hi ,
>>   I am planning to use the existing IOCTL interface for SD/MMC
>>   present
>> in the kernel.
>>   Since, the IOCTL interface expects a read/write flag and the MMC
>> IOCTL is actually an interface to block layer I feel without
>> modifying
>> the block layer for the support of non-read write commands ,I may not
>> be able to test the non-read/write commands through the IOCTL
>> interface .
>
> Unsure what you mean. Certainly it's up to you how to handle the data
> you pass to the ioctl(). The "in" and "out" just says whether you
> are passing data to the kernel or expecting something back, no more -
> no less.
>
> What are you actually trying to do? What are you trying to expose or control
> through an ioctl?
>
> A
>



-- 
regards,
Shashidhar Hiremath
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to