From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: Re: [PATCH 1/1] cr: define CHECKPOINT_SUBTREE flag and sysctl Date: Thu, 30 Apr 2009 10:26:15 -0500 Message-ID: <20090430152615.GC19684@us.ibm.com> References: <20090424210608.GA16973@us.ibm.com> <20090425083908.GA2767@us.ibm.com> <20090430145735.GA19684@us.ibm.com> <49F9C044.8040907@cs.columbia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <49F9C044.8040907-eQaUEPhvms7ENvBUuze7eA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Oren Laadan Cc: Linux Containers , Alexey Dobriyan List-Id: containers.vger.kernel.org Quoting Oren Laadan (orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org): > Hmmm... IIUC from the text above then: > > ptr = mmap(NULL, size, MMAP_EXEC | ... ) > memcpy(ptr, src, size); > mremap(src, size, size, MREMAP_FIXED | ..., ptr); What is src and size? Hmm, I guess you can get that from /proc/self/maps. Cool. -serge