Hi,
I have added a library to the kernel which I want applications to be able to access via a system call. I want to load the library pages when the kernel starts and to keep the pages locked in RAM. Since it is part of the kernel are the pages locked by default? Since that does not seem to be the case, how do I go about locking the pages?
If your library code is running in kernel space (either compiled in kernel binary or built as a loadable module), then it will be automatically be resident in memory. However, if you want to do it in userspace, then you might want to use mlock syscall. Thanks, Rajat -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ