Re: remap_file_pages() use

2014-05-20 Thread Kenny Simpson
file_pages(cptr + 16*4096/*addr*/, 4096/*size*/, 0/*prot*/, 0/*pgoff*/, 0/*flags*/); cptr[16*4096] = 'a'; return cptr[0] != 'a'; // if this aliases, this will be 'a' } On Tue, May 20, 2014 at 9:53 PM, Kenny Simpson wrote: > ouch... hope they don&#x

Re: remap_file_pages() use

2014-05-20 Thread Kenny Simpson
ouch... hope they don't try to run that code on anything newer then :( Will let them know. -Kenny On Mon, May 19, 2014 at 5:24 PM, Kirill A. Shutemov wrote: > On Mon, May 19, 2014 at 01:34:05PM -0400, Kenny Simpson wrote: >> For the other cases I had used the remapping to

Re: remap_file_pages() use

2014-05-19 Thread Kenny Simpson
ug variants anyway. -Kenny On Mon, May 19, 2014 at 10:35 AM, Kirill A. Shutemov wrote: > Michal Hocko wrote: >> [CCing Kirill and other people involved] >> >> On Sun 18-05-14 00:03:28, Kenny Simpson wrote: >> > I saw that remap_file_pages() was possibly going away to be

remap_file_pages() use

2014-05-17 Thread Kenny Simpson
I saw that remap_file_pages() was possibly going away to be replaced by some emulation. I've used this call in several projects over the years mostly as a way of mapping multiple virtual memory pages to alias the same private or shared memory region (to do things like circular buffers). mmap() in t