Re: Determining which kernel functions are exported

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

 



Greg KH wrote:

That code is not in the main kernel.org kernel tree at all, so it is not
a valid example.

Fair enough.

Why not state what you want to accomplish instead?  Also, a pointer to
your code would be most helpful.

Like the IB driver, I'm trying to lock user pages in memory.

To be honest, I inherited the driver, so I haven't validated this claim myself, but I was told the reason we need to use sys_mlock() to lock the pages is because the normal kernel method (which I can't recall at the moment) doesn't work. It locks the pages, but the lock isn't guaranteed. There is some condition where the kernel will swap-out the page, despite the lock.

--
Timur Tabi
Staff Software Engineer
timur.tabi@xxxxxxxxxxx

--
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