Hi... > Is it possible to do some kind of page locking or pinning from > application, so that kernel doesn't swap out the page as long as use mmap(MAP_NORESERVE) to make the user mode pages unswappable... > application is alive? For example, I want a global variable's address > to be valid in kernel (here validity only means the page > corresponding to user space virtual address to be present). kernel space pages are never swapped out AFAIK.. regards, Mulyadi -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/