From: "Yu-Chen Wu" <g944370@oz.nthu.edu.tw>
To: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org
Subject: How to copy a page to another page completely?
Date: Tue, 6 Mar 2007 01:49:29 +0800 [thread overview]
Message-ID: <000001c75f4e$a0674a00$0100a8c0@sslabmayasky> (raw)
Hi all,
I tried "memcpy","__copy_to_user",and "__copy_to_user_inatomic",etc.
The destination is BIO's bio_vec->page (the page should be in userspace),
the source is a page of my modules;
I get the addresses of the both pages from kmap() or kmap_atomic() then pass
to "memcpy" or "__copy_to_user" or "__copy_to_user_inatomic".
If the method can work, the buffer of userspace process will have the
context of the page of my module.
There is a problem that the context of buffer is incomplete when first run,
and the problem will disappear when run more time.
How to copy a page to another page completely?
THX
reply other threads:[~2007-03-05 17:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='000001c75f4e$a0674a00$0100a8c0@sslabmayasky' \
--to=g944370@oz.nthu.edu.tw \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@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