Files
haiku-beta6/src/kernel/vm2/vpageManager.h
T
Michael Phipps 3dcf5034e5 Checkpoint - more work done.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1685 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 18:55:44 +00:00

21 lines
644 B
C++

// This manager holds all of the vpages.
// It creates them from the vpage pool
// and ensures that no two vpages point to
// the same vnode without also pointing to
// the same physical memory. Thus, cached disk
// blocks and mmapped memory always stay in sync.
// mmap seems to not want this to happen for a
// couple of cases - MAP_PRIVATE and MAP_COPY.
// If we decided to ever build these, we would
// have to make some changes.
class vpageManager
{
private:
public:
vpage *getVpage(unsigned long start,vnode *backing, page *physMem,protectType prot,pageState state);
vpage *getVpage(vnode &vn);
void putVpage(vpage &vp);
}