git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1685 a95241bf-73f2-0310-859d-f6bbb57e9c96
21 lines
644 B
C++
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);
|
|
}
|