Re: What is __KERNEL_SYSCALLS__ for?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 16, 2004 at 01:07:30PM -0600, Timur Tabi wrote:
> Arjan van de Ven wrote:
> 
> >ewwww why do you need to find sys_read ????????
> >
> >or call it ???
> 
> It's a long story.  We do the same thing the infiniband driver does. 
> Because of a bug in the VM with respect to get_user_pages(), we need to 
> call sys_mlock().  The bug's been fixed in 2.6, but we're stuck with 
> sys_mlock() in 2.4.  To find sys_mlock(), we scan memory for the 
> addresses of known sys_xxx functions, and extrapolate the address for 
> sys_mlock() that way.

Again, you're on your own in 2.4 for doing such a horrible hack :)

Haven't we been over this before on this list?

thanks,

greg k-h

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux