Thread (5 messages) 5 messages, 4 authors, 2003-02-26

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

From: Martin J. Bligh <hidden>
Date: 2003-02-26 19:03:53

quoted
But be aware that pagefaulting inside kmap_atomic is bad - you can get
blocked and rescheduled, so touching user pages, etc is dangerous.
That's true in 2.4.  In 2.5 a copy_foo_user() inside kmap_atomic()
will just return a short copy while remaining atomic.

See mm/filemap.c:filemap_copy_from_user()
Cool - I didn't realise you fixed that up so generically - very nice.

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