[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More questions...



Kanoj Sarcar wrote:

> 
>>b) Is there an architecture-independent way to
>>determine if a page fault
>>was due to a read or write operation?  On i386 I can
>>look at the %cr2
>>value in the sigcontext, but I'd prefer to do
>>something less arch-specific...
>>
> 
> The last parameter to handle_mm_fault() ...
> 

How do I determine it *in userspace*?

	-hpa

--
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/