Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-07-2016, 04:21 AM   #1
LQ Newbie
Registered: Jun 2016
Posts: 1

Rep: Reputation: Disabled
Kernel - Memory Management - Copy Virtual Memory Area


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?
Old 06-08-2016, 12:07 AM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 & 7
Posts: 3,226

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
This may help


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stack memory area print that would show symbols and memory address using GDB narasimhap Linux - Software 2 09-21-2014 08:40 PM
Difference between resident memory,shared memory and virtual memory in system monitor mathimca05 Linux - Newbie 1 11-11-2007 05:05 AM
Virtual Memory Management Research alagenchev Linux - General 5 04-06-2006 12:12 AM
Does Linux have virtual memory management APIs? neo_in_matrix Programming 7 06-05-2005 11:44 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration