public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* memmove syscall
@ 2004-02-04 12:32 Nikolay Igotti
  2004-02-06  3:52 ` Rik van Riel
  0 siblings, 1 reply; 4+ messages in thread
From: Nikolay Igotti @ 2004-02-04 12:32 UTC (permalink / raw)
  To: linux-kernel

   Maybe this is kinda crazy (or known) idea, but why don't we create 
syscall
allowing large copies by just manipulating MMU page table, i.e.

asmlinkage long sys_memmove(void* dst, void* src, int size) {
  if ((dst & ~PAGE_SIZE) ||(src & ~PAGE_SIZE) || (size & ~PAGE_SIZE))
                return -EINVAL;

   return mmu_remap_pages(src,  dst, size / PAGE_SIZE);
}


 This could be useful for copying of large amounts of data when we know that
source not gonna be used anymore (typical example is garbage collector).
 
 Please reply directly, as I'm not on the list.


  Nikolay.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-02-07  1:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-04 12:32 memmove syscall Nikolay Igotti
2004-02-06  3:52 ` Rik van Riel
2004-02-06  4:45   ` Nikolay Igotti
2004-02-07  1:23     ` Jamie Lokier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox