Re: MMC ioctl or sysfs interface?

Pierre Ossman
2005-06-12T19:45:59Z

Alan Cox wrote:

>On Gwe, 2005-06-10 at 22:00, Pierre Ossman wrote:
>
>
>>>IDE disks can do this too --- is it the same interface?
>>>
>>>
>>No. ATA and MMC are very different protocols.
>>
>>
>
>It would be good to have the same ioctls on both block devices or sysfs
>files however.
>
>

I wasn't aware that you could do ioctl on sysfs nodes. I guess I'll have
to dig a bit deeper in the documentation/code.

As for keeping the same ioctl. If the current ioctls are similar enough
then I don't see why not. The userspace tools might need changing though
since all ATA ioctls won't be available. What tool is used for locking
an ATA drive? And is there some documentation detailing the lock
commands and related ioctls so I can compare with what I'm trying to do?

Rgds
Pierre