Messages in this thread | | | Date | Fri, 21 May 2004 18:58:00 -0400 (EDT) | From | "Richard B. Johnson" <> | Subject | Re: x86_64 and ioctls from 32 bit userland |
| |
On Fri, 21 May 2004, Stephen Cameron wrote:
> Hi, a question about x86_64 and ioctls coming in from 32-bit > userland. > > I found this document describing 32-bit ioctls on 64 bit archs, > http://shorterlink.com/?47B2OV > but, it is from July of 2002, so I'm not sure it's up to date. > Should I look somewhere else? > > Also, if my userland process passes in an ioctl data structure > and that data structure in turn contains ontains a 32 bit pointer > to another data buffer within that process' address space > the kernel needs to copy in/oot, how can that be handled? > Can it be handled? > > Thanks, > > -- steve
Yes. The user-mode 32-bit pointer within a structure is no different than passing a 32-bit user-mode pointer as the third parameter to an ioctl(fd, WHAT, ptr).
Cheers, Dick Johnson Penguin : Linux version 2.4.26 on an i686 machine (5570.56 BogoMips). Note 96.31% of all statistics are fiction.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |