LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Kernel - Memory Management - Copy Virtual Memory Area (https://www.linuxquestions.org/questions/programming-9/kernel-memory-management-copy-virtual-memory-area-4175581638/)

shankur90 06-07-2016 03:21 AM

Kernel - Memory Management - Copy Virtual Memory Area
 
Hello,

I am trying to write a system call that copies a range of vm area to a new vm area. This will be an extension of copy_page_range() function implemented in mm/memory.c
The only change I want is instead of copying pages to the same virtual address in other mm_area_struct, it should copy the pages to different virtual address in same mm.

I finished writing the call, but I am getting some KERN_ALERTs regarding bad rss_counter. Also, sometimes it works and sometimes not which seems to me as a synchronisation issue. Someone to a rescue?

smallpond 06-07-2016 11:07 PM

This may help

http://www.gossamer-threads.com/list...kernel/1537894


All times are GMT -5. The time now is 02:16 PM.