On Sunday 25 March 2007 07:07, [EMAIL PROTECTED] wrote:
> This would probably work well for systems without mmap(),
> it is what you meant with "OS-specific"?
> 
> Otherwise I fear that we'd miss possible modifications done via mmap().
> It may be used though as another "shortcut" check if there were no mmap()s.

On the systems that support mmap(), we can check the protection argument 
for the flag PROT_WRITE.  If it is mapped with write, the kernel module would
have to assume a write.  (I don't think we want to try to walk the buffer
cache in each supported system trying to find out if any of the pages were
modified.)

--Phil

-- 
Phil Nelson                       NetBSD: http://www.NetBSD.org
e-mail: [EMAIL PROTECTED]           Coda: http://www.coda.cs.cmu.edu
http://www.cs.wwu.edu/nelson 

Attachment: pgpQQoANrmB5E.pgp
Description: PGP signature

Reply via email to