Re: get_user_pages() still broken in 2.6

From: Andi Kleen
Date: Wed Sep 29 2004 - 10:45:00 EST


Timur Tabi <timur.tabi@xxxxxxxxxxx> writes:

> Christoph Hellwig wrote:
>
>> 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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/