Re: [PATCH v4] mmc: Add ioctl to let userspace apps send ACMDs

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

 



On Mon, 18 Apr 2011, Arnd Bergmann wrote:
> On Wednesday 13 April 2011, John Calixto wrote:
> > Gah!  OK, so much for the v5 I just sent then.  What do you think about
> > the compat_ioctl that I sent in v2?  It means having the extra 32-bit
> > compat structure, but at least all the compat overhead is conditional
> > upon CONFIG_COMPAT.  If you're not using CONFIG_COMPAT, you don't get
> > any compat cruft.
> > 
> 
> A single __u64 is sufficient, because the user space will do the correct
> conversion from pointer to 64-bit integer then. The only conversion
> you need to worry about is the actual pointer to the main structure,
> which needs the compat_ptr() magic.
> 

Yep.  Please see the v6 patch for my latest implementation.

John
--
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