Skip to contentSkip to conversation

get_user_pages() still broken in 2.6

DISCUSSION Andi Kleen 1 participant 1 message Sep 29, 2004 3 messages not in the archive

lore
Share & tools
lore

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]

Andi Kleen

author
#3 lore raw
Quoted 8 lines · Timur Tabi
Quoted 1 line · Christoph Hellwig

get_user_pages locks 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