public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nikolay Igotti <nike@lyola.com>
To: linux-kernel@vger.kernel.org
Subject: memmove syscall
Date: Wed, 04 Feb 2004 15:32:15 +0300	[thread overview]
Message-ID: <4020E64F.8020006@lyola.com> (raw)

   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.


             reply	other threads:[~2004-02-04 12:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-04 12:32 Nikolay Igotti [this message]
2004-02-06  3:52 ` memmove syscall Rik van Riel
2004-02-06  4:45   ` Nikolay Igotti
2004-02-07  1:23     ` Jamie Lokier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4020E64F.8020006@lyola.com \
    --to=nike@lyola.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox