lkml.org 
[lkml]   [2004]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.030 / U:1.932 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site