Re: pte_val(*pte) as lvalue

From: Russell King (
Date: Tue Jul 03 2001 - 13:43:00 EST

On Tue, Jul 03, 2001 at 01:32:36PM -0500, Timur Tabi wrote:
> ** Reply to message from Andi Kleen <> on 03 Jul 2001 01:33:42 +0200
> > set_pte(pte, mk_pte( ... ))
> I'm not sure how to use mk_pte. The first parameter is a struct page *,
> which I don't have. All I'm doing is modifying the PTE value. I don't
> want to "make" another one.

set_pte is the only way you can guarantee that the architecture
implementation gets to do what it needs to do with the PTE value
before stuffing it into the PTE tables.

Can I ask what the nature of the PTE modification is, and where you
are making this modification?

Russell King (                The developer of ARM Linux

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Jul 07 2001 - 21:00:12 EST