mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Roland McGrath <roland@redhat.com>
To: "Dave Airlie" <airlied@gmail.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	libc-alpha@sources.redhat.com
Subject: Re: IO space memcpy support for userspace.
Date: Fri,  5 Dec 2008 12:27:46 -0800 (PST)	[thread overview]
Message-ID: <20081205202746.7DB20FC379@magilla.sf.frob.com> (raw)
In-Reply-To: Dave Airlie's message of  Friday, 5 December 2008 13:40:43 +1000 <21d7e9970812041940h29994c60w3e7bcf20b96efe04@mail.gmail.com>

There is never going to be something in memcpy that makes any magical
kernel calls to find out about an address.  That's just loony, sorry.
memcpy is inlined away by the compiler in good cases.  It's like you'd
asked for "*ptr" to have magical constraints by the compiler generating
code to ask the kernel if "ptr" is a special address.  Uh, really?

If you can think of an efficient way to determine it and do what you need,
then you could write optimized routines that do that in the vDSO perhaps.


Thanks,
Roland

  parent reply	other threads:[~2008-12-05 20:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-05  3:40 Dave Airlie
2008-12-05 17:32 ` Carlos O'Donell
2008-12-05 20:22   ` David Miller
2008-12-06  6:34     ` Dave Airlie
2008-12-06 16:07       ` Carlos O'Donell
2008-12-08  5:24         ` Robert Hancock
2008-12-05 20:27 ` Roland McGrath [this message]
2008-12-06  6:30   ` Dave Airlie

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=20081205202746.7DB20FC379@magilla.sf.frob.com \
    --to=roland@redhat.com \
    --cc=airlied@gmail.com \
    --cc=libc-alpha@sources.redhat.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

Powered by JetHome