public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Manfred Spraul <manfred@colorfullife.com>
To: LA Walsh <law@sgi.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Block driver design issue
Date: Mon, 12 Feb 2001 18:30:58 +0100	[thread overview]
Message-ID: <3A881DD2.46D2EE66@colorfullife.com> (raw)
In-Reply-To: <3A881A52.962B3ED4@sgi.com>

LA Walsh wrote:
> 
> 
> I find this duplication of code to be inefficient.  Is there a way to dummy up the
> the 'buf' address so that the "copy_from_user" will copy the buffer from kernel space?
> My assumption is that it wouldn't "just work" (which may also be an invalid assumption).
> 
> Suggestions?  Abuse?
>

set_fs(KERNEL_DS)?

After that call copy_from_user() will accept kernel space addresses.

--
	Manfred
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://vger.kernel.org/lkml/

      reply	other threads:[~2001-02-12 17:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-12 17:16 Block driver design issue LA Walsh
2001-02-12 17:30 ` Manfred Spraul [this message]

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=3A881DD2.46D2EE66@colorfullife.com \
    --to=manfred@colorfullife.com \
    --cc=law@sgi.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