LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


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

Rep: Reputation: Disabled
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?
 
Old 06-07-2016, 11:07 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
This may help

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


Reply



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 07:40 PM
Difference between resident memory,shared memory and virtual memory in system monitor mathimca05 Linux - Newbie 1 11-11-2007 04:05 AM
Virtual Memory Management Research alagenchev Linux - General 5 04-05-2006 11:12 PM
Does Linux have virtual memory management APIs? neo_in_matrix Programming 7 06-05-2005 10:44 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:42 AM.

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