get_user_pages() still broken in 2.6
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · Timur Tabi
Quoted 1 line · Christoph Hellwig
get_user_pageslocks the page in memory. It doesn't do anything about ptes.I don't understand the difference. I thought a locked page is one that stays in memory (i.e. isn't swapped out) and whose physical address never changes. Is that wrong? All I need to do is keep a page in memory at the same physical address until I'm done with it.
After get_user_pages you don't need the page tables anymore. The struct page *s returned by it can be used for DMA.
-Andi