Re: [PATCH v6] mmc: Add mmc CMD+ACMD passthrough ioctl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



W dniu 20 kwietnia 2011 19:38 użytkownik John Calixto
<john.calixto@xxxxxxxxxxxxxx> napisał:
> Hi Michal,
>
> On Wed, 20 Apr 2011, Michał Mirosław wrote:
>>
>> So... again... What's the problem with anonymous union of pointer and u64?
>>
>
> As Arnd pointed out, this would not work for big endian machines.

There's no endianness dependency in the example I wrote. All fields in
a union start at the same address, so compat_ioctl will always take
u32 from the beginning of the space reserved, and 32-bit pointer set
by userspace will also be at the beginning.

Best Regards,
Michał Mirosław
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux