Xorg input thread (2)
jbarnes at virtuousgeek.org
Mon Jul 9 14:16:24 PDT 2007
On Monday, July 9, 2007 12:10:16 Nix wrote:
> On 9 Jul 2007, Jesse Barnes stated:
> > It's fairly easy using gcc extensions, e.g. using
> > __attribute__((section("mouse_functions")) for all mouse related
> > functions and data. Then at startup time, the mlock routine would
> > lock that whole section (you'd have to use some ELF parsing
> > routines to get the address and length of the section used).
> Actually you should be able to use a linker script to place marker
> symbols at the start and end of the section, and then just mlock the
> range between the addresses of those symbols.
> (I can dig up examples if you like, but there are plenty scattered
> around: I think the Linux kernel alone has half a dozen.)
Yeah, a linker script is another possibility (Linux uses that).
More information about the xorg