mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* RE: ioctls, etc. (was Re: [PATCH 1/4] sas: add flag for locally a ttached PHYs)
@ 2005-10-21 12:32 Bagalkote, Sreenivas
  2005-10-21 12:40 ` Matthew Wilcox
  0 siblings, 1 reply; 2+ messages in thread
From: Bagalkote, Sreenivas @ 2005-10-21 12:32 UTC (permalink / raw)
  To: 'Jeff Garzik', dougg
  Cc: andrew.patterson, Luben Tuikov, Christoph Hellwig, Moore,
	Eric Dean, jejb, linux-scsi, Linux Kernel, Linus Torvalds

>Jeff Garzik wrote:
>> Do you know where there are some clear guidelines on the use of 
>> pointers in a structure passed to an ioctl to lessen (or bypass) 
>> 32<->64 compat ioctl thunking?
>
>Its impossible.  If you pass pointers, you need to thunk.  
>(Not even passing pointers via sysfs can avoid this.)  
>Consider running a 32-bit app (with 32-bit pointers and 32-bit 
>ABI) on a 64-bit kernel.

The drivers/scsi/megaraid/megaraid_mm.c simply calls regular ioctl
from within the compat_ioctl, though it does copy to and from the
userland pointers. This is done by adding appropriate padding.

Sincerely,
Sreenivas

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-21 12:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-21 12:32 ioctls, etc. (was Re: [PATCH 1/4] sas: add flag for locally a ttached PHYs) Bagalkote, Sreenivas
2005-10-21 12:40 ` Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome