Re: is avoiding compat ioctls possible?



On Wed, Oct 28, 2009 at 12:25 PM, David Miller <davem@xxxxxxxxxxxxx> wrote:
From: Dave Airlie <airlied@xxxxxxxxx>
Date: Wed, 28 Oct 2009 11:22:18 +1000

Is there really no way to avoid compat ioctls? was I delusional in
thinking there was?

If you use pointers in your interfaces in any way, no.

And for this drm_radeon_info thing the pointer is "pointless",
you're just returning 32-bit values to the user, just use
a u32 inside of the drm_radeon_info structure for the kernel
to place the result in.

The plan for that was to expand it later, for now 32-bit was all we used.

Dave.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: is avoiding compat ioctls possible?
    ... If you use pointers in your interfaces in any way, ... a u32 inside of the drm_radeon_info structure for the kernel ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: do need Interfaces for COM
    ... > chapter about Interfaces in Dale Rogerson's Inside COM, ... > the Function pointers instead of Interface pointers?? ... which is discussed in this newsgroup. ... C++ Faq: http://www.parashift.com/c++-faq-lite C Faq: http://www.eskimo.com/~scs/c-faq/top.html alt.comp.lang.learn.c-c++ faq: ...
    (comp.lang.cpp)
  • Re: Application crashes while releasing IMediaSeeking interface
    ... button which stops the current playback and releases all the ... interfaces. ... use smart COM pointers (see my FAQ through the link below). ...
    (microsoft.public.win32.programmer.directx.audio)
  • [PATCH 20/21] amd64_edac: add ECC reporting initializers
    ... convert to the new msr_on_cpus interfaces. ... return empty; ... u32 mc_type_index; ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: The Failure of OOP
    ... >> Hi Calum, ... > could definitely rig something that will show interfaces in your favour. ... In some scenarios you would have more pointers than objects, ... Christopher Diggins ...
    (comp.object)