Thread (2 messages) 2 messages, 2 authors, 2003-02-21

Re: Silly question: How to map a user space page in kernel space?

From: Martin J. Bligh <hidden>
Date: 2003-02-21 22:22:33

Got a naive question I cannot find the answer for: 

I have a user space page (I know the 'struct page *' and I did a
get_page() on it so it doesn't go away to swap) and I need to be able to
access it with normal pointers (to do a bunch of atomic operations on
it). I cannot use get_user() and friends, just pointers.

So, the question is, how can I map it into the kernel space in a portable
manner? Am I missing anything very basic here?

Thanks in advance :)

PS: I suspect remap_page_range() is going to be involved, but I cannot see
how.
kmap or kmap_atomic

M.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org">aart@kvack.org</a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help