* How to copy a page to another page completely?
@ 2007-03-05 17:49 Yu-Chen Wu
0 siblings, 0 replies; only message in thread
From: Yu-Chen Wu @ 2007-03-05 17:49 UTC (permalink / raw)
To: linux-kernel, linux-raid
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-03-05 17:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-05 17:49 How to copy a page to another page completely? Yu-Chen Wu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox